ValidationMode Enumeration

Specifies when a class that derives from the ArgumentValidationAttribute class will run validation.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public enum ValidationMode

Members

AfterConversion0 Validation will occur after the value is converted. The value passed to the ArgumentValidationAttributeIsValid(CommandLineArgument, Object) method is an instance of the argument's type.
BeforeConversion1 Validation will occur before the value is converted. The value passed to the ArgumentValidationAttributeIsValid(CommandLineArgument, Object) method is the raw string provided by the user, and CommandLineArgumentValue is not yet set.
AfterParsing2 Validation will occur after all arguments have been parsed. Validators will only be called on arguments with values, and the value passed to ArgumentValidationAttributeIsValid(CommandLineArgument, Object) is always .

See Also