MaxLengthAttribute.Length Property   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the maximum allowable length of the array or string data.
public:
 property int Length { int get(); };public int Length { get; }member this.Length : intPublic ReadOnly Property Length As IntegerProperty Value
The maximum allowable length of the array or string data.