ErrorMessageLocalizationContext 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 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
Properties
| Name | Description |
|---|---|
| Attribute |
Gets the validation attribute that produced the error. |
| DeclaringType |
Gets the type that declares the member being validated.
|
| DisplayName |
Gets the resolved display name for the member being validated. |
| MemberName |
Gets the CLR name for the member being validated. |