DisplayNameLocalizationContext Struct

Definition

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
DisplayNameLocalizationContext

Properties

Name Description
DeclaringType

Gets the type that declares the member being validated. null for top-level parameter validation.

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.

Applies to