public Object? Value { get; }
Public ReadOnly Property Value As Object
Get
Dim instance As CommandLineArgument
Dim value As Object
value = instance.Value
public:
property Object^ Value {
Object^ get ();
}
The Value property provides an alternative method for accessing supplied argument values, in addition to using the object returned by CommandLineParserParse(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 Kind property is ArgumentKindMultiValue, 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 Kind property is ArgumentKindDictionary, the Value property will return a DictionaryTKey, TValue with all the values, even if the argument type is a different type.