ValidateCountAttribute.IsValid Method

Determines if the argument's item count is in the range.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public override bool IsValid(
	CommandLineArgument argument,
	Object? value
)

Parameters

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

Return Value

Boolean
true if the value is valid; otherwise, false.

See Also