实现Get-Help PSCmdlet

时间:2017-10-15 00:03:43

标签: c# powershell cmdlets pscmdlet remarks

我正在使用C#中的PSCmdlet类编写PowerShell Cmdlet。

[Cmdlet(VerbsCommon.Get, "Employee")]
public class GetEmployee : PSCmdlet

我想在Get-Help Get-Employee的备注,说明,概要部分提供更多信息

任何人都知道如何添加/填充这些部分?

1 个答案:

答案 0 :(得分:0)

/// <summary>
/// <para type="synopsis">This is the cmdlet synopsis.</para>
/// <para type="description">This is part of the longer cmdlet description.</para>
/// <para type="description">Also part of the longer cmdlet description.</para>
/// </summary>
[Cmdlet(VerbsCommon.Get, "Employee")]
public class GetEmployee : PSCmdlet

有关详细示例,请参阅此博文here