DisplayNameLocalizationContext Struct
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.
Provides context to the ResolveDisplayName(DisplayNameLocalizationContext) method for resolving localized display names for properties and parameters.
public value class DisplayNameLocalizationContext
public readonly struct DisplayNameLocalizationContext
type DisplayNameLocalizationContext = struct
Public Structure DisplayNameLocalizationContext
- Inheritance
Properties
| Name | Description |
|---|---|
| DeclaringType |
Gets the type that declares the member being validated.
|
| DisplayName |
Gets the display name from Name to use as a localization lookup key. |
| MemberName |
Gets the CLR member name (property name, parameter name, or type name) being validated. Use this as the fallback display name when no localization is available. |