ValidationLocalizationServiceCollectionExtensions Class
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.
Extension methods for registering the default IStringLocalizer-based validation localizer (Microsoft.Extensions.Validation.Localization.DefaultValidationLocalizer).
public ref class ValidationLocalizationServiceCollectionExtensions abstract sealed
public static class ValidationLocalizationServiceCollectionExtensions
type ValidationLocalizationServiceCollectionExtensions = class
Public Module ValidationLocalizationServiceCollectionExtensions
- Inheritance
-
ValidationLocalizationServiceCollectionExtensions
Methods
| Name | Description |
|---|---|
| AddValidationLocalization(IServiceCollection, Action<ValidationLocalizationOptions>) |
Adds the default IStringLocalizer-based validation localizer to the service collection and wires it up by setting Localizer. |
| AddValidationLocalization<TResource>(IServiceCollection, Action<ValidationLocalizationOptions>) |
Adds the default IStringLocalizer-based validation localizer configured to
resolve localized strings against the resource type |