Partager via


MvcLocalizationMvcCoreBuilderExtensions.AddMvcLocalization Méthode

Définition

Surcharges

AddMvcLocalization(IMvcCoreBuilder)

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

AddMvcLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat)

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

AddMvcLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

AddMvcLocalization(IMvcCoreBuilder, Action<LocalizationOptions>)

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

AddMvcLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat, Action<MvcDataAnnotationsLocalizationOptions>)

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

AddMvcLocalization(IMvcCoreBuilder, Action<LocalizationOptions>, LanguageViewLocationExpanderFormat)

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

AddMvcLocalization(IMvcCoreBuilder, Action<LocalizationOptions>, Action<MvcDataAnnotationsLocalizationOptions>)

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

AddMvcLocalization(IMvcCoreBuilder, Action<LocalizationOptions>, LanguageViewLocationExpanderFormat, Action<MvcDataAnnotationsLocalizationOptions>)

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

AddMvcLocalization(IMvcCoreBuilder)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddMvcLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddMvcLocalization (builder As IMvcCoreBuilder) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

Retours

L’IMvcCoreBuilderopérateur

Remarques

L’ajout de la localisation ajoute également la prise en charge des vues via AddViews(IMvcCoreBuilder) et du moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à

AddMvcLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format);
static member AddMvcLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddMvcLocalization (builder As IMvcCoreBuilder, format As LanguageViewLocationExpanderFormat) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

format
LanguageViewLocationExpanderFormat

Format d’affichage pour les vues localisées.

Retours

L’IMvcCoreBuilderopérateur

Remarques

L’ajout de la localisation ajoute également la prise en charge des vues via AddViews(IMvcCoreBuilder) et du moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à

AddMvcLocalization(IMvcCoreBuilder, Action<MvcDataAnnotationsLocalizationOptions>)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> dataAnnotationsLocalizationOptionsSetupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction);
static member AddMvcLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddMvcLocalization (builder As IMvcCoreBuilder, dataAnnotationsLocalizationOptionsSetupAction As Action(Of MvcDataAnnotationsLocalizationOptions)) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

dataAnnotationsLocalizationOptionsSetupAction
Action<MvcDataAnnotationsLocalizationOptions>

Action pour configurer le MvcDataAnnotationsLocalizationOptions.

Retours

L’IMvcCoreBuilderopérateur

Remarques

L’ajout de la localisation ajoute également la prise en charge des vues via AddViews(IMvcCoreBuilder) et du moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à

AddMvcLocalization(IMvcCoreBuilder, Action<LocalizationOptions>)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions> localizationOptionsSetupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions>? localizationOptionsSetupAction);
static member AddMvcLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.Extensions.Localization.LocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddMvcLocalization (builder As IMvcCoreBuilder, localizationOptionsSetupAction As Action(Of LocalizationOptions)) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

localizationOptionsSetupAction
Action<LocalizationOptions>

Action pour configurer le LocalizationOptions.

Retours

L’IMvcCoreBuilderopérateur

Remarques

L’ajout de la localisation ajoute également la prise en charge des vues via AddViews(IMvcCoreBuilder) et du moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à

AddMvcLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat, Action<MvcDataAnnotationsLocalizationOptions>)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> dataAnnotationsLocalizationOptionsSetupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction);
static member AddMvcLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat * Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddMvcLocalization (builder As IMvcCoreBuilder, format As LanguageViewLocationExpanderFormat, dataAnnotationsLocalizationOptionsSetupAction As Action(Of MvcDataAnnotationsLocalizationOptions)) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

format
LanguageViewLocationExpanderFormat

Format d’affichage pour les vues localisées.

dataAnnotationsLocalizationOptionsSetupAction
Action<MvcDataAnnotationsLocalizationOptions>

Action pour configurer le MvcDataAnnotationsLocalizationOptions.

Retours

L’IMvcCoreBuilderopérateur

Remarques

L’ajout de la localisation ajoute également la prise en charge des vues via AddViews(IMvcCoreBuilder) et du moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à

AddMvcLocalization(IMvcCoreBuilder, Action<LocalizationOptions>, LanguageViewLocationExpanderFormat)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions> localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format);
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions>? localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format);
static member AddMvcLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.Extensions.Localization.LocalizationOptions> * Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddMvcLocalization (builder As IMvcCoreBuilder, localizationOptionsSetupAction As Action(Of LocalizationOptions), format As LanguageViewLocationExpanderFormat) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

localizationOptionsSetupAction
Action<LocalizationOptions>

Action pour configurer le LocalizationOptions.

format
LanguageViewLocationExpanderFormat

Format d’affichage pour les vues localisées.

Retours

L’IMvcCoreBuilderopérateur

Remarques

L’ajout de la localisation ajoute également la prise en charge des vues via AddViews(IMvcCoreBuilder) et du moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à

AddMvcLocalization(IMvcCoreBuilder, Action<LocalizationOptions>, Action<MvcDataAnnotationsLocalizationOptions>)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions> localizationOptionsSetupAction, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> dataAnnotationsLocalizationOptionsSetupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions>? localizationOptionsSetupAction, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction);
static member AddMvcLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.Extensions.Localization.LocalizationOptions> * Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddMvcLocalization (builder As IMvcCoreBuilder, localizationOptionsSetupAction As Action(Of LocalizationOptions), dataAnnotationsLocalizationOptionsSetupAction As Action(Of MvcDataAnnotationsLocalizationOptions)) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

localizationOptionsSetupAction
Action<LocalizationOptions>

Action pour configurer le LocalizationOptions.

dataAnnotationsLocalizationOptionsSetupAction
Action<MvcDataAnnotationsLocalizationOptions>

Action pour configurer le MvcDataAnnotationsLocalizationOptions.

Retours

L’IMvcCoreBuilderopérateur

Remarques

L’ajout de la localisation ajoute également la prise en charge des vues via AddViews(IMvcCoreBuilder) et du moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à

AddMvcLocalization(IMvcCoreBuilder, Action<LocalizationOptions>, LanguageViewLocationExpanderFormat, Action<MvcDataAnnotationsLocalizationOptions>)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Ajoute des services de localisation de vue et d’annotations de données MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions> localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> dataAnnotationsLocalizationOptionsSetupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddMvcLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions>? localizationOptionsSetupAction, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions>? dataAnnotationsLocalizationOptionsSetupAction);
static member AddMvcLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.Extensions.Localization.LocalizationOptions> * Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat * Action<Microsoft.AspNetCore.Mvc.DataAnnotations.MvcDataAnnotationsLocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddMvcLocalization (builder As IMvcCoreBuilder, localizationOptionsSetupAction As Action(Of LocalizationOptions), format As LanguageViewLocationExpanderFormat, dataAnnotationsLocalizationOptionsSetupAction As Action(Of MvcDataAnnotationsLocalizationOptions)) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

localizationOptionsSetupAction
Action<LocalizationOptions>

Action pour configurer le LocalizationOptions. Peut être null.

format
LanguageViewLocationExpanderFormat

Format d’affichage pour les vues localisées.

dataAnnotationsLocalizationOptionsSetupAction
Action<MvcDataAnnotationsLocalizationOptions>

Action pour configurer le MvcDataAnnotationsLocalizationOptions. Peut être null.

Retours

L’IMvcCoreBuilderopérateur

Remarques

L’ajout de la localisation ajoute également la prise en charge des vues via AddViews(IMvcCoreBuilder) et du moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à