Ookii.CommandLine.Validation Namespace

Provides attributes used to validate the value of arguments, and the relation between arguments.

Classes

ArgumentValidationAttribute Base class for argument validators.
ArgumentValidationWithHelpAttribute Base class for argument validators that have usage help.
ClassValidationAttribute Base class for argument class validators.
DependencyValidationAttribute Base class for the RequiresAttribute and ProhibitsAttribute class.
ProhibitsAttribute Validates that an argument is not used together with other arguments.
RequiresAnyAttribute Validates whether at least one of the specified arguments is supplied.
RequiresAttribute Validates that an argument can only be used together with other arguments.
ValidateCountAttribute Validates whether the number of items for a multi-value or dictionary argument is in the specified range.
ValidateEnumValueAttribute Validates whether the value of an enumeration type is one of the defined values for that type.
ValidateNotEmptyAttribute Validates that the value of an argument is not an empty string.
ValidateNotNullAttribute Validates that the value of an argument is not .
ValidateNotWhiteSpaceAttribute Validates that the value of an argument is not an empty string, or a string containing only white-space characters.
ValidatePatternAttribute Validates that an argument's value matches the specified regular expression.
ValidateRangeAttribute Validates whether an argument value is in the specified range.
ValidateStringLengthAttribute Validates that the string length of an argument's value is in the specified range.

Enumerations

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