ValidateStringLengthAttributeIsSpanValid Method
Determines if the argument's value's length is in the range.
Namespace: Ookii.CommandLine.ValidationAssembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
public override bool? IsSpanValid(
CommandLineArgument argument,
ReadOnlySpan<char> value
)
Public Overrides Function IsSpanValid (
argument As CommandLineArgument,
value As ReadOnlySpan(Of Char)
) As Boolean?
Dim instance As ValidateStringLengthAttribute
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
) override
- argument CommandLineArgument
- The argument being validated.
- value ReadOnlySpanChar
-
The raw string value of the argument.
NullableBoolean if the value is valid; otherwise,
.