MvcLocalizationMvcBuilderExtensions.AddViewLocalization Metoda

Definicja

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

IMvcBuilder

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
LanguageViewLocationExpanderFormat

Format widoku dla widoków zlokalizowanych.

Zwraca

IMvcBuilder

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 LocalizationOptions .

Zwraca

IMvcBuilder

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
LanguageViewLocationExpanderFormat

Format widoku dla widoków zlokalizowanych.

setupAction
Action<LocalizationOptions>

Akcja konfigurowania LocalizationOptions .

Zwraca

IMvcBuilder

Element IMvcBuilder.

Dotyczy