public event EventHandler<ArgumentParsedEventArgs> ArgumentParsed
Public Event ArgumentParsed As EventHandler(Of ArgumentParsedEventArgs)
Dim instance As CommandLineParser
Dim handler As EventHandler(Of ArgumentParsedEventArgs)
AddHandler instance.ArgumentParsed, handler
public:
event EventHandler<ArgumentParsedEventArgs^>^ ArgumentParsed {
void add (EventHandler<ArgumentParsedEventArgs^>^ value);
void remove (EventHandler<ArgumentParsedEventArgs^>^ value);
}
Set the ArgumentParsedEventArgs.CancelParsing property in the event handler to cancel parsing at the current argument. To have usage help shown by the parse methods that do this automatically, you must set the HelpRequested property to true explicitly in the event handler.
The ArgumentParsedEventArgs.CancelParsing property is initialized to the value of the CommandLineArgumentAttribute.CancelParsing property, or the method return value of an argument using ArgumentKind.Method. Reset the value to CancelMode.None to continue parsing anyway.
This event is invoked after the CommandLineArgument.Value and CommandLineArgument.UsedArgumentName properties have been set.