This topic has not yet been rated - Rate this topic

ParameterSetMetadata Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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)
'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.
Did you find this helpful?
(1500 characters remaining)