ValidateEnumValueAttributeIsValidPostConversion Method

Determines if the argument's value is defined.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public override bool IsValidPostConversion(
	CommandLineArgument argument,
	Object? value
)

Parameters

argument  CommandLineArgument
The argument being validated.
value  Object
The argument value. If not , this must be an instance of CommandLineArgumentElementType.

Return Value

Boolean
if the value is valid; otherwise, .

Remarks

The default implementation always returns .

Exceptions

NotSupportedExceptionargument is not an argument with an enumeration type.

See Also