System.ComponentModel.DataAnnotations.RequiredAttribute public class RequiredAttribute : ValidationAttribute Documentation Code public bool AllowEmptyStrings { get; set; } public RequiredAttribute()