System.ComponentModel.DataAnnotations.MaxLengthAttribute
Specifies the maximum length of array or string data allowed in a property.
Gets the maximum allowable length of the array or string data.
Initializes a new instance of the MaxLengthAttribute class based on the length parameter.
public MaxLengthAttribute()
Initializes a new instance of the MaxLengthAttribute class.