C# Class System.Management.Automation.CmdletInfo

Inheritance: System.Management.Automation.CommandInfo
Mostra file Open project: JayBazuzi/Pash Class Usage Examples

Private Methods

Method Description
CmdletInfo ( string name, Type implementingType, string helpFile, System.Management.Automation.PSSnapInInfo PSSnapin, ExecutionContext context ) : System
GetDefaultParameterSet ( ) : CommandParameterSetInfo
GetParameterSetByName ( string strParamSetName ) : CommandParameterSetInfo
GetParameterSetInfo ( Type cmdletType ) : ReadOnlyCollection From MSDN article: http://msdn2.microsoft.com/en-us/library/ms714348(VS.85).aspx * A cmdlet can have any number of parameters. However, for a better user experience the number of parameters should be limited when possible. * Parameters must be declared on public non-static fields or properties. It is preferred for parameters to be declared on properties. The property must have a public setter, and if ValueFromPipeline or ValueFromPipelineByPropertyName is specified the property must have a public getter. * When specifying positional parameters, note the following. * Limit the number of positional parameters in a parameter set to less than five if possible. * Positional parameters do not have to be sequential; positions 5, 100, 250 works the same as positions 0, 1, 2. * When the Position keyword is not specified, the cmdlet parameter must be referenced by its name. * When using parameter sets, no parameter set should contain more than one positional parameter with the same position. * In addition, only one parameter in a set should declare ValueFromPipeline = true. Multiple parameters may define ValueFromPipelineByPropertyName = true.