Partilhar via


MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotationsLocalization Método

Definição

Sobrecargas

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Adiciona a localização de anotações de dados MVC ao aplicativo.

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Registra uma ação para configurar MvcDataAnnotationsLocalizationOptions a localização de anotações de dados do MVC.

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Origem:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Origem:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Origem:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Adiciona a localização de anotações de dados MVC ao aplicativo.

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

Retornos

O IMvcCoreBuilder.

Aplica-se a

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Origem:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Origem:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Origem:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Registra uma ação para configurar MvcDataAnnotationsLocalizationOptions a localização de anotações de dados do 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

Retornos

O IMvcBuilder.

Aplica-se a