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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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