ParameterSetMetadata.Position Property

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Gets and sets the position of the parameter, if it is a positional parameter, for this parameter set.

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

public int Position { get; set; }

Property Value

Type: System.Int32

An Int32 value that indicates the position of the parameter, if it is a positional parameter, for this parameter set.

If the position of the parameter is not set explicitly, this property defaults to int.MinValue, which means that the parameter is not positional. The Position property can be set to int.MinValue.

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

Return to top

Community Additions

ADD
Show: