Note
Do not throw an exception from this method if validation fails. Instead, return
and provide an error message using the GetErrorMessage(CommandLineArgument, Object)
method.
public override bool IsValidPostConversion(
CommandLineArgument argument,
Object? value
)
Public Overrides Function IsValidPostConversion (
argument As CommandLineArgument,
value As Object
) As Boolean
Dim instance As ValidateEnumValueAttribute
Dim argument As CommandLineArgument
Dim value As Object
Dim returnValue As Boolean
returnValue = instance.IsValidPostConversion(argument,
value)
public:
virtual bool IsValidPostConversion(
CommandLineArgument^ argument,
Object^ value
) override
The default implementation always returns .
NotSupportedException | argument is not an argument with an enumeration type. |