Click or drag to resize

ArgumentParsedEventArgs Class

Provides data for the ArgumentParsed event.
Inheritance Hierarchy

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
public class ArgumentParsedEventArgs : CancelEventArgs

The ArgumentParsedEventArgs type exposes the following members.

Constructors
  NameDescription
Public methodArgumentParsedEventArgs
Initializes a new instance of the ArgumentParsedEventArgs class.
Top
Properties
  NameDescription
Public propertyArgument
Gets the argument that was parsed.
Public propertyCancel (Inherited from CancelEventArgs.)
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Remarks

If the event handler sets the Cancel property to , command line processing will stop immediately, and the Parse(String, Int32) method will return , even if all the required positional parameters have already been parsed. You can use this for instance to implement a "/?" argument that will display usage and quit regardless of the other command line arguments.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also