IntegerValidatorAttribute.MaxValue Property

 
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.

Gets or sets the maximum value allowed for the property.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

member MaxValue : int with get, set

Property Value

Type: System.Int32

An integer that indicates the allowed maximum value.

Exception Condition
ArgumentOutOfRangeException

The selected value is less than MinValue.

The MaxValue property value is included in the allowed range.

The following example shows how to use the MaxValue property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: