IntegerValidator Constructor (Int32, Int32, Boolean, Int32)
.NET Framework (current version)
Initializes a new instance of the IntegerValidator class.
Assembly: System.Configuration (in System.Configuration.dll)
public: IntegerValidator( int minValue, int maxValue, bool rangeIsExclusive, int resolution )
Parameters
- minValue
-
Type:
System::Int32
An Int32 object that specifies the minimum length of the integer value.
- maxValue
-
Type:
System::Int32
An Int32 object that specifies the maximum length of the integer value.
- rangeIsExclusive
-
Type:
System::Boolean
A Boolean value that specifies whether the validation range is exclusive.
- resolution
-
Type:
System::Int32
An Int32 object that specifies a value that must be matched.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | resolution is less than 0. - or - minValue is greater than maxValue. |
The Int32 value being validated must be equal to the resolution value in order to pass validation.
.NET Framework
Available since 2.0
Available since 2.0
Show: