public CancelMode CancelParsing { get; set; }
Public Property CancelParsing As CancelMode
Get
Set
Dim instance As CommandLineArgumentAttribute
Dim value As CancelMode
value = instance.CancelParsing
instance.CancelParsing = value
public:
property CancelMode CancelParsing {
CancelMode get ();
void set (CancelMode value);
}
If this property is not CancelModeNone, the CommandLineParser will stop parsing the command line arguments after seeing this argument. The result of the operation will be if this property is CancelModeAbort, or an instance of the arguments class with the results up to this point if this property is CancelModeSuccess. In the latter case, the ParseResultRemainingArguments property will contain all arguments that were not parsed.
If CancelModeSuccess is used, all required arguments must have a value at the point this argument is encountered, otherwise a CommandLineArgumentException is thrown.
Use the ParseResultArgumentName property to determine which argument caused cancellation.
If this property is CancelModeAbort, the CommandLineParserHelpRequested property will be automatically set to when parsing is canceled.
It's possible to prevent cancellation when an argument has this property set by handling the CommandLineParserArgumentParsed event and setting the ArgumentParsedEventArgsCancelParsing property to CancelModeNone.