IntegerValidator Constructor (Int32, Int32, Boolean, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the IntegerValidator class.

Namespace:   System.Configuration
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
Return to top
Show: