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