32 instantiations of DisplayAttribute
Microsoft.AspNetCore.Identity.UI (32)
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
75[Display(Name = "Remember me?")]
Areas\Identity\Pages\V4\Account\LoginWith2fa.cshtml.cs (2)
53[Display(Name = "Authenticator code")] 60[Display(Name = "Remember this machine")]
Areas\Identity\Pages\V4\Account\LoginWithRecoveryCode.cshtml.cs (1)
47[Display(Name = "Recovery Code")]
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (3)
44[Display(Name = "Current password")] 54[Display(Name = "New password")] 62[Display(Name = "Confirm new password")]
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (1)
58[Display(Name = "New email")]
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
68[Display(Name = "Verification Code")]
Areas\Identity\Pages\V4\Account\Manage\Index.cshtml.cs (1)
48[Display(Name = "Phone number")]
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (2)
44[Display(Name = "New password")] 52[Display(Name = "Confirm new password")]
Areas\Identity\Pages\V4\Account\Register.cshtml.cs (3)
57[Display(Name = "Email")] 67[Display(Name = "Password")] 75[Display(Name = "Confirm password")]
Areas\Identity\Pages\V4\Account\ResetPassword.cshtml.cs (1)
56[Display(Name = "Confirm password")]
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
75[Display(Name = "Remember me?")]
Areas\Identity\Pages\V5\Account\LoginWith2fa.cshtml.cs (2)
53[Display(Name = "Authenticator code")] 60[Display(Name = "Remember this machine")]
Areas\Identity\Pages\V5\Account\LoginWithRecoveryCode.cshtml.cs (1)
47[Display(Name = "Recovery Code")]
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (3)
44[Display(Name = "Current password")] 54[Display(Name = "New password")] 62[Display(Name = "Confirm new password")]
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (1)
58[Display(Name = "New email")]
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
68[Display(Name = "Verification Code")]
Areas\Identity\Pages\V5\Account\Manage\Index.cshtml.cs (1)
48[Display(Name = "Phone number")]
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (2)
44[Display(Name = "New password")] 52[Display(Name = "Confirm new password")]
Areas\Identity\Pages\V5\Account\Register.cshtml.cs (3)
57[Display(Name = "Email")] 67[Display(Name = "Password")] 75[Display(Name = "Confirm password")]
Areas\Identity\Pages\V5\Account\ResetPassword.cshtml.cs (1)
56[Display(Name = "Confirm password")]
34 references to DisplayAttribute
Microsoft.AspNetCore.Components.Forms (5)
ClientValidation\DefaultClientValidationService.cs (5)
259DisplayAttribute? resourceDisplayAttribute, 274public DisplayAttribute? ResourceDisplayAttribute { get; } = resourceDisplayAttribute; 291var displayAttribute = property.GetCustomAttribute<DisplayAttribute>(inherit: true); 292DisplayAttribute? resourceDisplayAttribute = null;
Microsoft.AspNetCore.Components.Web (4)
Forms\DisplayName.cs (1)
12/// Displays the display name for a specified field, reading from <see cref="DisplayAttribute"/>
Forms\ExpressionMemberAccessor.cs (2)
59var displayAttribute = m.GetCustomAttribute<DisplayAttribute>();
Forms\Label.cs (1)
11/// <see cref="System.ComponentModel.DataAnnotations.DisplayAttribute"/> or
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\ModelMetadata.cs (1)
384/// By default, this is configured using <see cref="System.ComponentModel.DataAnnotations.DisplayAttribute.Prompt" />.
Microsoft.AspNetCore.Mvc.DataAnnotations (7)
DataAnnotationsMetadataProvider.cs (7)
60var displayAttribute = attributes.OfType<DisplayAttribute>().FirstOrDefault(); 186.OrderBy(field => field.GetCustomAttribute<DisplayAttribute>(inherit: false)?.GetOrder() ?? 1000); 393var display = field.GetCustomAttribute<DisplayAttribute>(inherit: false); 412var display = field.GetCustomAttribute<DisplayAttribute>(inherit: false);
Microsoft.Extensions.Validation (7)
DisplayNameInfo.cs (2)
18/// <see cref="DisplayAttribute.Name"/>, a static resource accessor for 28/// from a static resource (the <see cref="DisplayAttribute.ResourceType"/> path) typically
DisplayNameLocalizationContext.cs (1)
21/// Gets the display name from <see cref="DisplayAttribute.Name"/> to use as a localization lookup key.
RuntimeValidatableParameterInfoResolver.cs (3)
66var displayAttribute = parameterInfo.GetCustomAttribute<DisplayAttribute>(); 125private sealed class ParameterReflectionDisplayName(DisplayAttribute attribute) : DisplayNameInfo
ValidationOptions.cs (1)
43/// names from <see cref="System.ComponentModel.DataAnnotations.DisplayAttribute.Name"/> and
System.ComponentModel.Annotations (9)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
67if (attribute is DisplayAttribute display)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (6)
44/// Retrieves the <see cref="DisplayAttribute" /> associated with the given type. It may be null. 49internal DisplayAttribute? GetTypeDisplayAttribute(ValidationContext validationContext) 71/// Retrieves the <see cref="DisplayAttribute" /> associated with the given property 76internal DisplayAttribute? GetPropertyDisplayAttribute(ValidationContext validationContext) 153DisplayAttribute = attributes.OfType<DisplayAttribute>().SingleOrDefault(); 158internal DisplayAttribute? DisplayAttribute { get; }
System\ComponentModel\DataAnnotations\ValidationContext.cs (2)
163/// If this name was not explicitly set, this property will consult an associated <see cref="DisplayAttribute" /> 231DisplayAttribute? displayAttribute = null;
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.DisplayAttribute))]