ArgumentValidationAttributeValidate Method
Validates the argument value, and throws an exception if validation failed.
Namespace: Ookii.CommandLine.ValidationAssembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
public void Validate(
CommandLineArgument argument,
Object? value
)
Public Sub Validate (
argument As CommandLineArgument,
value As Object
)
Dim instance As ArgumentValidationAttribute
Dim argument As CommandLineArgument
Dim value As Object
instance.Validate(argument, value)
public:
void Validate(
CommandLineArgument^ argument,
Object^ value
)
Parameters
- argument CommandLineArgument
- The argument being validated.
- value Object
-
The argument value. If not , this must be a string or an instance of
CommandLineArgumentArgumentType.