Click or drag to resize
ParserParseArguments Method (String, Object, ActionString, Object)
Parses a String array of command line arguments with verb commands, setting values in options parameter instance's public fields decorated with appropriate attributes. This overload supports verb commands.

Namespace: X3Platform.CommandLine
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public bool ParseArguments(
	string[] args,
	Object options,
	Action<string, Object> onVerbCommand
)

Parameters

args
Type: SystemString
A String array of command line arguments.
options
Type: SystemObject
An instance used to receive values. Parsing rules are defined using BaseOptionAttribute derived types.
onVerbCommand
Type: SystemActionString, Object
Delegate executed to capture verb command name and instance.

Return Value

Type: Boolean
True if parsing process succeed.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if args is null.
ArgumentNullExceptionThrown if options is null.
ArgumentNullExceptionThrown if onVerbCommand is null.
See Also