Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

LongValidator Constructor (Int64, Int64, Boolean, Int64)

Initializes a new instance of the LongValidator class.

Namespace:  System.Configuration
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.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft