ParserParseArgumentsStrict Method (String, Object, Action) |
Parses a
String array of command line arguments, setting values in
options
parameter instance's public fields decorated with appropriate attributes. If parsing fails, the method invokes
the
onFail delegate, if null exits with
DefaultExitCodeFail.
Namespace: X3Platform.CommandLineAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic bool ParseArgumentsStrict(
string[] args,
Object options,
Action onFail = null
)
public:
bool ParseArgumentsStrict(
array<String^>^ args,
Object^ options,
Action^ onFail = nullptr
)
Parameters
- args
- Type: SystemString
A String array of command line arguments. - options
- Type: SystemObject
An object's instance used to receive values.
Parsing rules are defined using BaseOptionAttribute derived types. - onFail (Optional)
- Type: SystemAction
The Action delegate executed when parsing fails.
Return Value
Type:
BooleanTrue if parsing process succeed.
Exceptions
See Also