<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0-preview.3.20214.6" />

System.ComponentModel.DataAnnotations.DisplayAttribute

public sealed class DisplayAttribute : Attribute
namespace System.ComponentModel.DataAnnotations { public sealed class DisplayAttribute : Attribute { public string ShortName { get; set; } public string Name { get; set; } public string Description { get; set; } public string Prompt { get; set; } public string GroupName { get; set; } public Type ResourceType { get; set; } public bool AutoGenerateField { get; set; } public bool AutoGenerateFilter { get; set; } public int Order { get; set; } public string GetShortName(); public string GetName(); public string GetDescription(); public string GetPrompt(); public string GetGroupName(); public bool? GetAutoGenerateField(); public bool? GetAutoGenerateFilter(); public int? GetOrder(); public DisplayAttribute(); } } namespace System.ComponentModel.DataAnnotations { public class ValidationException : Exception { public ValidationAttribute ValidationAttribute { get; } public ValidationResult ValidationResult { get; } public object Value { get; } public ValidationException(ValidationResult validationResult, ValidationAttribute validatingAttribute, object value); public ValidationException(string errorMessage, ValidationAttribute validatingAttribute, object value); public ValidationException(); public ValidationException(string message); public ValidationException(string message, Exception innerException); } }