Sdílet prostřednictvím


MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotationsLocalization Metoda

Definice

Přetížení

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Přidá do aplikace lokalizaci datových poznámek MVC.

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Zaregistruje akci pro konfiguraci MvcDataAnnotationsLocalizationOptions lokalizace datových poznámek MVC.

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Zdroj:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Zdroj:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Zdroj:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Přidá do aplikace lokalizaci datových poznámek MVC.

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

Parametry

Návraty

Hodnota IMvcCoreBuilder

Platí pro

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Zdroj:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Zdroj:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Zdroj:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Zaregistruje akci pro konfiguraci MvcDataAnnotationsLocalizationOptions lokalizace datových poznámek MVC.

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

Parametry

builder
IMvcCoreBuilder

Hodnota IMvcBuilder

Návraty

Hodnota IMvcBuilder

Platí pro