StringValidatorAttribute::MaxLength Property
.NET Framework (current version)
Gets or sets the maximum length allowed for the string to assign to the property.
Assembly: System.Configuration (in System.Configuration.dll)
Property Value
Type: System::Int32An integer that indicates the maximum allowed length for the string to assign to the property.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The selected value is less than MinLength. |
.NET Framework
Available since 2.0
Available since 2.0
Show: