18 references to Name
Microsoft.AspNetCore.Components.Forms (2)
ClientValidation\DefaultClientValidationService.cs (2)
295
if (displayAttribute is { ResourceType: not null,
Name
: not null })
301
literalDisplayName = displayAttribute?.
Name
Microsoft.AspNetCore.Mvc.DataAnnotations (2)
DataAnnotationsMetadataProvider.cs (2)
129
!string.IsNullOrEmpty(displayAttribute.
Name
) &&
132
displayMetadata.DisplayName = () => localizer[displayAttribute.
Name
];
Microsoft.Extensions.Validation (6)
DisplayNameInfo.cs (1)
18
/// <see cref="DisplayAttribute.
Name
"/>, a static resource accessor for
DisplayNameLocalizationContext.cs (1)
21
/// Gets the display name from <see cref="DisplayAttribute.
Name
"/> to use as a localization lookup key.
RuntimeValidatableParameterInfoResolver.cs (3)
67
if (displayAttribute is { ResourceType: not null,
Name
: not null })
76
if (displayAttribute?.
Name
is not null)
79
return new LiteralDisplayName(displayAttribute.
Name
);
ValidationOptions.cs (1)
43
/// names from <see cref="System.ComponentModel.DataAnnotations.DisplayAttribute.
Name
"/> and
System.ComponentModel.Annotations (8)
System\ComponentModel\DataAnnotations\DisplayAttribute.cs (8)
23
private readonly LocalizableString _name = new LocalizableString(nameof(
Name
));
168
/// <see cref="
Name
" />, <see cref="Description" />, <see cref="Prompt" />, and <see cref="GroupName" />.
310
/// This can be either a literal, non-localized string provided to <see cref="
Name
" /> or the
311
/// localized string found when <see cref="ResourceType" /> has been specified and <see cref="
Name
" />
317
/// <see cref="
Name
" /> will be returned.
319
/// When <see cref="ResourceType" /> has been specified and <see cref="
Name
" />
328
/// After setting both the <see cref="ResourceType" /> property and the <see cref="
Name
" /> property,
329
/// but a public static property with a name matching the <see cref="
Name
" /> value couldn't be found