CommandLineArgumentKind Property

Gets a value which indicates what kind of argument this instance represents.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public ArgumentKind Kind { get; }

Property Value

ArgumentKind
One of the values of the ArgumentKind enumeration.

Remarks

An argument that is ArgumentKindMultiValue can accept multiple values by being supplied more than once. An argument is multi-value if its ArgumentType is an array or the argument was defined by a read-only property whose type implements the ICollectionT generic interface.

An argument that is ArgumentKindDictionary is a multi-value argument whose values are key/value pairs, which get added to a dictionary based on the key. An argument is a dictionary argument when its ArgumentType is DictionaryTKey, TValue, or it was defined by a read-only property whose type implements the IDictionaryTKey, TValue interface.

An argument is ArgumentKindMethod if it is backed by a method instead of a property, which will be invoked when the argument is set. Method arguments cannot be multi-value or dictionary arguments.

Otherwise, the value will be ArgumentKindSingleValue.

See Also