Partager via


MvcLocalizationMvcCoreBuilderExtensions.AddViewLocalization Méthode

Définition

Surcharges

AddViewLocalization(IMvcCoreBuilder)

Ajoute les services de localisation de vue MVC à l’application.

AddViewLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat)

Ajoute les services de localisation de vue MVC à l’application.

AddViewLocalization(IMvcCoreBuilder, Action<LocalizationOptions>)

Ajoute les services de localisation de vue MVC à l’application.

AddViewLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

Ajoute les services de localisation de vue MVC à l’application.

AddViewLocalization(IMvcCoreBuilder)

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

Ajoute les services de localisation de vue MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddViewLocalization (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 le moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à

AddViewLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat)

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

Ajoute les services de localisation de vue MVC à l’application.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddViewLocalization (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 le moteur d’affichage Razor via AddRazorViewEngine(IMvcCoreBuilder).

S’applique à

AddViewLocalization(IMvcCoreBuilder, Action<LocalizationOptions>)

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

Ajoute les services de localisation de vue MVC à l’application.

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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

setupAction
Action<LocalizationOptions>

Action pour configurer .LocalizationOptions

Retours

L’IMvcCoreBuilderopérateur

Remarques

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

S’applique à

AddViewLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

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

Ajoute les services de localisation de vue MVC à l’application.

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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

format
LanguageViewLocationExpanderFormat

Format d’affichage pour les vues localisées.

setupAction
Action<LocalizationOptions>

Action pour configurer .LocalizationOptions

Retours

L’IMvcCoreBuilderopérateur

Remarques

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

S’applique à