Export (0) Print
Expand All

ParameterMetadata.ParameterSets Property

Gets information about the parameter that is specific for the parameter sets that the parameter belongs to. For example, if a parameter belongs to two parameter sets it could be mandatory for one parameter set but optional for the other. This property is introduced in Windows PowerShell 2.0.

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

Dim instance As ParameterMetadata
Dim value As Dictionary(Of String, ParameterSetMetadata)

value = instance.ParameterSets

public Dictionary<string,ParameterSetMetadata> ParameterSets { get; }
/** @property */
public Dictionary<String,ParameterSetMetadata> get_ParameterSets ()

public function get ParameterSets () : Dictionary<String,ParameterSetMetadata>

Property Value

A dictionary of ParameterSetMetadata objects that describe the parameter for the parameter sets that the parameter belongs to. The dictionary key is the name of the parameter set.

For more information about parameters sets, 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