Windows Dev Center

ParameterSetMetadata Class

Represents the metadata for a parameter that belongs to a parameter set. A parameter can have different metadata for each parameter set that it belongs to. This class is introduced in Windows PowerShell 2.0.

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

Dim instance As ParameterSetMetadata

Public NotInheritable Class ParameterSetMetadata
public final class ParameterSetMetadata
public final class ParameterSetMetadata

The information provided by this class is accessed through the ParameterMetadata.ParameterSets property.

A parameter is added to one or more parameter sets when the parameter is declared by using the Parameter attribute. This means that parameters can be included in multiple parameter sets. However each parameter set must have at least one parameter that is unique to that parameter set. Good cmdlet design strongly suggests that the unique parameter of a parameter set is a mandatory parameter.

For more information about declaring parameters, see Parameter Attribute Declaration.

For more information about cmdlet parameters, see Cmdlet Parameters.


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

© 2015 Microsoft