ValidationLocalizationOptions.AttributeFormatters Property
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.
Gets the registry of formatters for attribute-specific error message template formatting. Built-in formatters for standard attributes are registered automatically.
public:
property Microsoft::Extensions::Validation::Localization::ValidationAttributeFormatterRegistry ^ AttributeFormatters { Microsoft::Extensions::Validation::Localization::ValidationAttributeFormatterRegistry ^ get(); };
public Microsoft.Extensions.Validation.Localization.ValidationAttributeFormatterRegistry AttributeFormatters { get; }
member this.AttributeFormatters : Microsoft.Extensions.Validation.Localization.ValidationAttributeFormatterRegistry
Public ReadOnly Property AttributeFormatters As ValidationAttributeFormatterRegistry
Property Value
Remarks
The registry is intended to be configured during application startup (typically inside the AddValidationLocalization options callback) by calling AddFormatter<TAttribute>(Func<TAttribute,IValidationAttributeFormatter>). Mutating the registry after the validation pipeline has begun processing requests is not thread-safe and is not supported.