MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotationsLocalization Methode

Definition

Überlädt

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Fügt der Anwendung die Lokalisierung von MVC-Datenanmerkungen hinzu.

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Registriert eine Aktion, um die Lokalisierung von MVC-Datenanmerkungen zu konfigurieren MvcDataAnnotationsLocalizationOptions .

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Quelle:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Quelle:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Quelle:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Fügt der Anwendung die Lokalisierung von MVC-Datenanmerkungen hinzu.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddDataAnnotationsLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddDataAnnotationsLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddDataAnnotationsLocalization (builder As IMvcCoreBuilder) As IMvcCoreBuilder

Parameter

Gibt zurück

Die IMvcCoreBuilder.

Gilt für:

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Quelle:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Quelle:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Quelle:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Registriert eine Aktion, um die Lokalisierung von MVC-Datenanmerkungen zu konfigurieren MvcDataAnnotationsLocalizationOptions .

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddDataAnnotationsLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> setupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddDataAnnotationsLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions>? setupAction);
static member AddDataAnnotationsLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddDataAnnotationsLocalization (builder As IMvcCoreBuilder, setupAction As Action(Of MvcDataAnnotationsLocalizationOptions)) As IMvcCoreBuilder

Parameter

Gibt zurück

Die IMvcBuilder.

Gilt für: