Condividi tramite


MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotationsLocalization Metodo

Definizione

Overload

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Aggiunge le annotazioni di dati MVC alla localizzazione dell'applicazione.

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Registra un'azione per configurare per la localizzazione MvcDataAnnotationsLocalizationOptions delle annotazioni dei dati MVC.

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Origine:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Origine:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Origine:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Aggiunge le annotazioni di dati MVC alla localizzazione dell'applicazione.

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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

Restituisce

Oggetto IMvcCoreBuilder.

Si applica a

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Origine:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Origine:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs
Origine:
MvcDataAnnotationsMvcCoreBuilderExtensions.cs

Registra un'azione per configurare per la localizzazione MvcDataAnnotationsLocalizationOptions delle annotazioni dei dati 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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcBuilder.

Restituisce

Oggetto IMvcBuilder.

Si applica a