CommandParameterSetInfo Class

Provides information about a parameter set of a cmdlet.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As CommandParameterSetInfo

public class CommandParameterSetInfo
public class CommandParameterSetInfo
public class CommandParameterSetInfo

Cmdlets can define more than one parameter set; however, the cmdlet will use only one parameter set for a particular input. The parameter set used is determined by the unique parameter that identifies the set. For more information about parameter sets, see the "Parameter Sets" section in Cmdlet Parameters. Multiple parameter sets allow you to create cmdlets that perform different actions based on the arguments of the cmdlet parameter.

A parameter is added to a parameter set when the parameter is declared. For more information about adding a parameter to a parameter set, see ParameterAttribute Declaration.


System.Object
  System.Management.Automation.CommandParameterSetInfo

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft