CommandLineArgumentIsSwitch Property |
Gets a value indicating whether this argument is a switch argument.
Namespace:
Ookii.CommandLine
Assembly:
Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntaxpublic bool IsSwitch { get; }
Public ReadOnly Property IsSwitch As Boolean
Get
Dim instance As CommandLineArgument
Dim value As Boolean
value = instance.IsSwitch
public:
property bool IsSwitch {
bool get ();
}
Property Value
Type:
Boolean if the argument is a switch argument; otherwise,
.
Remarks
A switch argument is an argument that doesn't need a value; instead, its value is or
depending on whether the argument is present on the command line.
A argument is a switch argument when it is not positional, and its ElementType is either Boolean or a nullable Boolean.
See Also