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.4.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
Gets or sets a value indicating whether the event should be canceled.
(Inherited from CancelEventArgs.)
Public propertyOverrideCancelParsing
Gets or sets a value that indicates whether or not the CancelParsing property should be ignored.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(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