Export (0) Print
Expand All

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)

'Usage
Dim instance As ParameterSetMetadata

public sealed 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.


System.Object
  System.Management.Automation.ParameterSetMetadata

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