IValidationLocalizer.ResolveDisplayName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resolves a localized display name for the member described by context.
public:
System::String ^ ResolveDisplayName(Microsoft::Extensions::Validation::DisplayNameLocalizationContext ^ context);
public string? ResolveDisplayName(in Microsoft.Extensions.Validation.DisplayNameLocalizationContext? context);
abstract member ResolveDisplayName : DisplayNameLocalizationContext -> string
Public Function ResolveDisplayName (context As DisplayNameLocalizationContext) As String
Parameters
- context
- DisplayNameLocalizationContext
Information about the member to resolve a display name for.
Returns
The localized display name, or null if not available.
Remarks
Implementations should return null to indicate that no localization is available; the validation pipeline falls back to MemberName. When DisplayName is null, implementations typically return null as well.