public int Position { get; set; }
Public Property Position As Integer
Get
Set
Dim instance As CommandLineArgumentAttribute
Dim value As Integer
value = instance.Position
instance.Position = value
public:
property int Position {
int get ();
void set (int value);
}
The Position property specifies the relative position of the positional arguments created by properties. The actual numbers are not important, only their order is. For example, if you have two positional arguments with positions set to 4 and 7, and no other positional arguments, they will be the first and second positional arguments, not the forth and seventh. It is an error to use the same number more than once.
When using the GeneratedParserAttribute, you can also set the IsPositional property to , without setting the Position property, to order the positional arguments using the order of the members that define them.
If you set the Position property to a non-negative value, it is not necessary to set the IsPositional property.
The CommandLineArgumentPosition property will be set to reflect the actual position of the argument, which may not match the value of this property.