ValidateRangeAttribute Constructor

Initializes a new instance of the ValidateRangeAttribute class.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public ValidateRangeAttribute(
	Object? minimum,
	Object? maximum
)

Parameters

minimum  Object
The inclusive lower bound of the range, or if the range has no lower bound.
maximum  Object
The inclusive upper bound of the range, or if the range has no upper bound.

Remarks

When not , both minimum and maximum must be an instance of the argument type, or a string.

Exceptions

ArgumentExceptionminimum and maximum are both .

See Also