ArgumentValidationAttributeValidatePostParsing Method

Validates the argument value after it was converted to the argument's type, and throws an exception if validation failed.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public void ValidatePostParsing(
	CommandLineArgument argument
)

Parameters

argument  CommandLineArgument
The argument being validated.

Remarks

This method calls the IsValidPostParsing(CommandLineArgument) method to do the actual validation.

Exceptions

CommandLineArgumentException The parameter's value is not a valid. The CommandLineArgumentExceptionCategory property will be the value of the ErrorCategory property.

See Also