MvcLocalizationMvcBuilderExtensions.AddViewLocalization Méthode

Définition

Surcharges

AddViewLocalization(IMvcBuilder)

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

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

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

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

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

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

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

AddViewLocalization(IMvcBuilder)

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

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

Paramètres

builder
IMvcBuilder

L’IMvcBuilderopérateur

Retours

IMvcBuilder

L’IMvcBuilderopérateur

S’applique à

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

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

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

Paramètres

builder
IMvcBuilder

L’IMvcBuilderopérateur

format
LanguageViewLocationExpanderFormat

Format de vue pour les vues localisées.

Retours

IMvcBuilder

L’IMvcBuilderopérateur

S’applique à

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

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

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

Paramètres

builder
IMvcBuilder

L’IMvcBuilderopérateur

setupAction
Action<LocalizationOptions>

Action permettant de configurer le LocalizationOptions .

Retours

IMvcBuilder

L’IMvcBuilderopérateur

S’applique à

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

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

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

Paramètres

builder
IMvcBuilder

L’IMvcBuilderopérateur

format
LanguageViewLocationExpanderFormat

Format de vue pour les vues localisées.

setupAction
Action<LocalizationOptions>

Action permettant de configurer le LocalizationOptions .

Retours

IMvcBuilder

L’IMvcBuilderopérateur

S’applique à