Click or drag to resize

CommandLineArgumentValue Property

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
public Object Value { get; }

Property Value

Type: Object
The value of the argument that was obtained when the command line arguments were parsed.
Remarks

The Value property provides an alternative method for accessing supplied argument values, in addition to using the object returned by Parse(String).

If an argument was supplied on the command line, the Value property will equal the supplied value after conversion to the type specified by the ArgumentType property, and the HasValue property will be .

If an optional argument was not supplied, the Value property will equal the DefaultValue property, and HasValue will be .

If the IsMultiValue property is , the Value property will return an array with all the values, even if the argument type is a collection type rather than an array.

If the IsDictionary property is , the Value property will return a DictionaryTKey, TValue with all the values, even if the argument type is a different type.

See Also