StringValidatorAttribute::MinLength Property

 

Gets or sets the minimum allowed value for the string to assign to the property.

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

public:
property int MinLength {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

An integer that indicates the allowed minimum length for the string to assign to the property.

Exception Condition
ArgumentOutOfRangeException

The selected value is greater than MaxLength.

The following example shows how to use the MinLength property.

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

.NET Framework
Available since 2.0
Return to top
Show: