ValidateRangeAttribute Constructor

Initializes a new instance of the ValidateRangeAttribute class.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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