MvcDataAnnotationsLocalizationOptions Klasse

Definition

Stellt eine programmgesteuerte Konfiguration für die DataAnnotations-Lokalisierung im MVC-Framework bereit.

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)
Vererbung
MvcDataAnnotationsLocalizationOptions
Implementiert

Konstruktoren

MvcDataAnnotationsLocalizationOptions()

Instanziiert eine neue Instanz der MvcDataAnnotationsLocalizationOptions-Klasse.

Felder

DataAnnotationLocalizerProvider

Der Delegat, der zum Erstellen von aufgerufen werden soll IStringLocalizer.

Eigenschaften

AllowDataAnnotationsLocalizationForEnumDisplayAttributes

Ruft einen Wert ab, der bestimmt, ob beim Lokalisieren von Enum Typen verwendet werden soll, DataAnnotationLocalizerProvider oder legt diesen fest. Wenn auf trueDataAnnotationLocalizerProvider festgelegt, wird zum Lokalisieren von Enum Typen verwendet. Wenn auf false die Lokalisierung festgelegt ist, sucht nach Werten in Ressourcendateien für Enum.

Methoden

GetEnumerator()

Stellt eine programmgesteuerte Konfiguration für die DataAnnotations-Lokalisierung im MVC-Framework bereit.

Explizite Schnittstellenimplementierungen

IEnumerable.GetEnumerator()

Stellt eine programmgesteuerte Konfiguration für die DataAnnotations-Lokalisierung im MVC-Framework bereit.

IEnumerable<ICompatibilitySwitch>.GetEnumerator()

Stellt eine programmgesteuerte Konfiguration für die DataAnnotations-Lokalisierung im MVC-Framework bereit.

Gilt für: