Partager via


MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotationsLocalization Méthode

Définition

Surcharges

AddDataAnnotationsLocalization(IMvcCoreBuilder)

Ajoute la localisation des annotations de données MVC à l’application.

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Inscrit une action à configurer MvcDataAnnotationsLocalizationOptions pour la localisation des annotations de données MVC.

AddDataAnnotationsLocalization(IMvcCoreBuilder)

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

Ajoute la localisation des annotations de données MVC à l’application.

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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

Retours

L’IMvcCoreBuilderopérateur

S’applique à

AddDataAnnotationsLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

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

Inscrit une action à configurer MvcDataAnnotationsLocalizationOptions pour la localisation des annotations de données 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

Paramètres

builder
IMvcCoreBuilder

L’IMvcBuilderopérateur

Retours

L’IMvcBuilderopérateur

S’applique à