MvcDataAnnotationsLocalizationOptions Class

Definition

Provides programmatic configuration for DataAnnotations localization in the MVC framework.

C#
public class MvcDataAnnotationsLocalizationOptions
C#
public class MvcDataAnnotationsLocalizationOptions : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch>
Inheritance
MvcDataAnnotationsLocalizationOptions
Implements

Constructors

Fields

DataAnnotationLocalizerProvider

The delegate to invoke for creating IStringLocalizer.

Properties

AllowDataAnnotationsLocalizationForEnumDisplayAttributes

Gets or sets a value that determines if DataAnnotationLocalizerProvider should be used while localizing Enum types. If set to trueDataAnnotationLocalizerProvider will be used in localizing Enum types. If set to false the localization will search for values in resource files for the Enum.

Methods

Explicit Interface Implementations

Applies to

Tuote Versiot
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0