public virtual bool? IsSpanValid(
CommandLineArgument argument,
ReadOnlySpan<char> value
)
Public Overridable Function IsSpanValid (
argument As CommandLineArgument,
value As ReadOnlySpan(Of Char)
) As Boolean?
Dim instance As ArgumentValidationAttribute
Dim argument As CommandLineArgument
Dim value As ReadOnlySpan(Of Char)
Dim returnValue As Boolean?
returnValue = instance.IsSpanValid(argument,
value)
public:
virtual Nullable<bool> IsSpanValid(
CommandLineArgument^ argument,
ReadOnlySpan<wchar_t> value
)
The CommandLineParser class will only call this method if the Mode property is ValidationModeBeforeConversion.
If you need to check the type of the argument, use the CommandLineArgumentElementType property unless you want to get the collection type for a multi-value or dictionary argument.
The base class implementation returns .