MaxLengthAttribute::Length Property

.NET Framework (current version)
 

Gets the maximum allowable length of the array or string data.

Namespace:   System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

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

Property Value

Type: System::Int32

The maximum allowable length of the array or string data.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.5
Return to top
Show: