MvcLocalizationMvcBuilderExtensions.AddViewLocalization Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
AddViewLocalization(IMvcBuilder) |
Dodaje usługi lokalizacji widoku MVC do aplikacji. |
AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat) |
Dodaje usługi lokalizacji widoku MVC do aplikacji. |
AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>) |
Dodaje usługi lokalizacji widoku MVC do aplikacji. |
AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>) |
Dodaje usługi lokalizacji widoku MVC do aplikacji. |
AddViewLocalization(IMvcBuilder)
Dodaje usługi lokalizacji widoku MVC do aplikacji.
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
Parametry
- builder
- IMvcBuilder
Element IMvcBuilder.
Zwraca
Element IMvcBuilder.
Dotyczy
AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)
Dodaje usługi lokalizacji widoku MVC do aplikacji.
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
Parametry
- builder
- IMvcBuilder
Element IMvcBuilder.
Format widoku dla zlokalizowanych widoków.
Zwraca
Element IMvcBuilder.
Dotyczy
AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)
Dodaje usługi lokalizacji widoku MVC do aplikacji.
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
Parametry
- builder
- IMvcBuilder
Element IMvcBuilder.
- setupAction
- Action<LocalizationOptions>
Akcja konfigurowania elementu LocalizationOptions.
Zwraca
Element IMvcBuilder.
Dotyczy
AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)
Dodaje usługi lokalizacji widoku MVC do aplikacji.
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
Parametry
- builder
- IMvcBuilder
Element IMvcBuilder.
Format widoku dla zlokalizowanych widoków.
- setupAction
- Action<LocalizationOptions>
Akcja konfigurowania elementu LocalizationOptions.
Zwraca
Element IMvcBuilder.