Поделиться через


MvcLocalizationMvcBuilderExtensions.AddViewLocalization Метод

Определение

Перегрузки

AddViewLocalization(IMvcBuilder)

Добавляет в приложение службы локализации представлений MVC.

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

Добавляет в приложение службы локализации представлений MVC.

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

Добавляет в приложение службы локализации представлений MVC.

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

Добавляет в приложение службы локализации представлений MVC.

AddViewLocalization(IMvcBuilder)

Исходный код:
MvcLocalizationMvcBuilderExtensions.cs
Исходный код:
MvcLocalizationMvcBuilderExtensions.cs
Исходный код:
MvcLocalizationMvcBuilderExtensions.cs

Добавляет в приложение службы локализации представлений MVC.

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

Параметры

Возвращаемое значение

IMvcBuilder.

Применяется к

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

Исходный код:
MvcLocalizationMvcBuilderExtensions.cs
Исходный код:
MvcLocalizationMvcBuilderExtensions.cs
Исходный код:
MvcLocalizationMvcBuilderExtensions.cs

Добавляет в приложение службы локализации представлений MVC.

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

Параметры

format
LanguageViewLocationExpanderFormat

Формат представления для локализованных представлений.

Возвращаемое значение

IMvcBuilder.

Применяется к

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

Исходный код:
MvcLocalizationMvcBuilderExtensions.cs
Исходный код:
MvcLocalizationMvcBuilderExtensions.cs
Исходный код:
MvcLocalizationMvcBuilderExtensions.cs

Добавляет в приложение службы локализации представлений MVC.

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

Параметры

setupAction
Action<LocalizationOptions>

Действие для настройки LocalizationOptions.

Возвращаемое значение

IMvcBuilder.

Применяется к

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

Исходный код:
MvcLocalizationMvcBuilderExtensions.cs
Исходный код:
MvcLocalizationMvcBuilderExtensions.cs
Исходный код:
MvcLocalizationMvcBuilderExtensions.cs

Добавляет в приложение службы локализации представлений MVC.

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

Параметры

format
LanguageViewLocationExpanderFormat

Формат представления для локализованных представлений.

setupAction
Action<LocalizationOptions>

Действие для настройки LocalizationOptions.

Возвращаемое значение

IMvcBuilder.

Применяется к