MvcDataAnnotationsLocalizationOptions Class

Definition

Provides programmatic configuration for DataAnnotations localization in the MVC framework.

public ref class MvcDataAnnotationsLocalizationOptions
public ref class MvcDataAnnotationsLocalizationOptions : System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Infrastructure::ICompatibilitySwitch ^>
public class MvcDataAnnotationsLocalizationOptions
public class MvcDataAnnotationsLocalizationOptions : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch>
type MvcDataAnnotationsLocalizationOptions = class
type MvcDataAnnotationsLocalizationOptions = class
    interface seq<ICompatibilitySwitch>
    interface IEnumerable
Public Class MvcDataAnnotationsLocalizationOptions
Public Class MvcDataAnnotationsLocalizationOptions
Implements IEnumerable(Of ICompatibilitySwitch)
Inheritance
MvcDataAnnotationsLocalizationOptions
Implements

Constructors

MvcDataAnnotationsLocalizationOptions()

Instantiates a new instance of the MvcDataAnnotationsLocalizationOptions class.

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

GetEnumerator()

Explicit Interface Implementations

IEnumerable.GetEnumerator()
IEnumerable<ICompatibilitySwitch>.GetEnumerator()

Applies to