MaxValue Property
Collapse the table of content
Expand the table of content

IntegerValidatorAttribute.MaxValue Property


Gets or sets the maximum value allowed for the property.

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

public int MaxValue { get; set; }

Property Value

Type: System.Int32

An integer that indicates the allowed maximum value.

Exception Condition

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.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft