Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ParameterMetadata.ParameterSets Property

 

Updated: April 27, 2016

Applies To: Windows PowerShell

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)

public Dictionary<string, ParameterSetMetadata> ParameterSets { get; }

Property Value

Type: System.Collections.Generic.Dictionary<String, ParameterSetMetadata>

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.

Return to top

Community Additions

Show: