MvcLocalizationMvcBuilderExtensions.AddViewLocalization Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddViewLocalization(IMvcBuilder) |
Ajoute des services de localisation de vue MVC à l’application. |
AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat) |
Ajoute des services de localisation de vue MVC à l’application. |
AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>) |
Ajoute des services de localisation de vue MVC à l’application. |
AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>) |
Ajoute des services de localisation de vue MVC à l’application. |
AddViewLocalization(IMvcBuilder)
Ajoute des services de localisation de vue MVC à 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
L’IMvcBuilderopérateur
S’applique à
AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)
Ajoute des services de localisation de vue MVC à 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 d’affichage pour les vues localisées.
Retours
L’IMvcBuilderopérateur
S’applique à
AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)
Ajoute des services de localisation de vue MVC à 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 pour configurer le LocalizationOptions.
Retours
L’IMvcBuilderopérateur
S’applique à
AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)
Ajoute des services de localisation de vue MVC à 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 d’affichage pour les vues localisées.
- setupAction
- Action<LocalizationOptions>
Action pour configurer le LocalizationOptions.
Retours
L’IMvcBuilderopérateur