Compartir a través de


MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotationsLocalization Método

Definición

Sobrecargas

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Agrega la localización de anotaciones de datos MVC a la aplicación.

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Registra una acción para configurar MvcDataAnnotationsLocalizationOptions la localización de anotaciones de datos de MVC.

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Agrega la localización de anotaciones de datos MVC a la aplicación.

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

Parámetros

Devoluciones

IMvcCoreBuilder.

Se aplica a

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Source:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Registra una acción para configurar MvcDataAnnotationsLocalizationOptions la localización de anotaciones de datos de 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

Parámetros

Devoluciones

IMvcBuilder.

Se aplica a