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 ArgumentParsedEventArgsCancelParsing 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 explicitly in the event handler.
The ArgumentParsedEventArgsCancelParsing property is initialized to the value of the CommandLineArgumentAttributeCancelParsing property, or the method return value of an argument using ArgumentKindMethod. Reset the value to CancelModeNone to continue parsing anyway.
This event is invoked after the CommandLineArgumentValue and CommandLineArgumentUsedArgumentName properties have been set.