Share via


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

Name Description
MvcDataAnnotationsLocalizationOptions()

Instantiates a new instance of the MvcDataAnnotationsLocalizationOptions class.

Fields

Name Description
DataAnnotationLocalizerProvider

The delegate to invoke for creating IStringLocalizer.

Properties

Name Description
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

Name Description
GetEnumerator()

Explicit Interface Implementations

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

Applies to