10 references to GetName
Microsoft.AspNetCore.Mvc.DataAnnotations (3)
DataAnnotationsMetadataProvider.cs (3)
126
if (displayAttribute?.
GetName
() != null)
136
displayMetadata.DisplayName = displayAttribute.
GetName
;
397
var name = display.
GetName
();
System.ComponentModel.Annotations (7)
System\ComponentModel\DataAnnotations\CompareAttribute.cs (1)
69
return display.
GetName
();
System\ComponentModel\DataAnnotations\DisplayAttribute.cs (5)
69
/// Consumers must use the <see cref="
GetName
" /> method to retrieve the UI display string.
77
/// The <see cref="
GetName
" /> method will return either the literal, non-localized
170
/// <see cref="
GetName
" />, <see cref="GetDescription" />, <see cref="GetPrompt" />, and <see cref="GetGroupName" />
297
/// If <see cref="ShortName" /> is <c>null</c>, the value from <see cref="
GetName
" /> will be returned.
305
public string? GetShortName() => _shortName.GetLocalizableValue() ??
GetName
();
System\ComponentModel\DataAnnotations\ValidationContext.cs (1)
220
displayName = displayAttribute.
GetName
();