ErrorMessageLocalizationContext Struct

Definition

Provides context to the ResolveErrorMessage(ErrorMessageLocalizationContext) method for resolving localized or customized error messages for validation attributes.

public value class ErrorMessageLocalizationContext
public readonly struct ErrorMessageLocalizationContext
type ErrorMessageLocalizationContext = struct
Public Structure ErrorMessageLocalizationContext
Inheritance
ErrorMessageLocalizationContext

Properties

Name Description
Attribute

Gets the validation attribute that produced the error.

DeclaringType

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

DisplayName

Gets the resolved display name for the member being validated.

MemberName

Gets the CLR name for the member being validated.

Applies to