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" /> 223DisplayAttribute? displayAttribute = null;
System.ComponentModel.DataAnnotations (1)
System.ComponentModel.DataAnnotations.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.DataAnnotations.DisplayAttribute))]