System.ComponentModel.DataAnnotations.MaxLengthAttribute public class MaxLengthAttribute : ValidationAttribute Documentation Code public int Length { get; } public MaxLengthAttribute(int length) public MaxLengthAttribute()