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 virtual bool IsValidPreConversion(
CommandLineArgument argument,
ReadOnlyMemory<char> value
)
Public Overridable Function IsValidPreConversion (
argument As CommandLineArgument,
value As ReadOnlyMemory(Of Char)
) As Boolean
Dim instance As ArgumentValidationAttribute
Dim argument As CommandLineArgument
Dim value As ReadOnlyMemory(Of Char)
Dim returnValue As Boolean
returnValue = instance.IsValidPreConversion(argument,
value)
public:
virtual bool IsValidPreConversion(
CommandLineArgument^ argument,
ReadOnlyMemory<wchar_t> value
)
The default implementation always returns .