ClassValidationAttributeValidate Method

Validates the argument value, and throws an exception if validation failed.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public void Validate(
	CommandLineParser parser
)

Parameters

parser  CommandLineParser
The argument parser being validated.

Exceptions

CommandLineArgumentException The combination of arguments in the parser is not valid. The CommandLineArgumentExceptionCategory property will be the value of the ErrorCategory property.

See Also