StringLengthAttribute.MaximumLength 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 or sets the maximum length of a string.
public:
 property int MaximumLength { int get(); };
	public int MaximumLength { get; }
	member this.MaximumLength : int
	Public ReadOnly Property MaximumLength As Integer
	Property Value
The maximum length a string.