MvcLocalizationMvcBuilderExtensions.AddViewLocalization Método

Definição

Sobrecargas

AddViewLocalization(IMvcBuilder)

Adiciona serviços de localização de exibição MVC ao aplicativo.

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

Adiciona serviços de localização de exibição MVC ao aplicativo.

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

Adiciona serviços de localização de exibição MVC ao aplicativo.

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

Adiciona serviços de localização de exibição MVC ao aplicativo.

AddViewLocalization(IMvcBuilder)

Origem:
MvcLocalizationMvcBuilderExtensions.cs
Origem:
MvcLocalizationMvcBuilderExtensions.cs
Origem:
MvcLocalizationMvcBuilderExtensions.cs

Adiciona serviços de localização de exibição MVC ao aplicativo.

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

Parâmetros

Retornos

O IMvcBuilder.

Aplica-se a

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat)

Origem:
MvcLocalizationMvcBuilderExtensions.cs
Origem:
MvcLocalizationMvcBuilderExtensions.cs
Origem:
MvcLocalizationMvcBuilderExtensions.cs

Adiciona serviços de localização de exibição MVC ao aplicativo.

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

Parâmetros

format
LanguageViewLocationExpanderFormat

O formato de exibição para exibições localizadas.

Retornos

O IMvcBuilder.

Aplica-se a

AddViewLocalization(IMvcBuilder, Action<LocalizationOptions>)

Origem:
MvcLocalizationMvcBuilderExtensions.cs
Origem:
MvcLocalizationMvcBuilderExtensions.cs
Origem:
MvcLocalizationMvcBuilderExtensions.cs

Adiciona serviços de localização de exibição MVC ao aplicativo.

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

Parâmetros

setupAction
Action<LocalizationOptions>

Uma ação para configurar o LocalizationOptions.

Retornos

O IMvcBuilder.

Aplica-se a

AddViewLocalization(IMvcBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

Origem:
MvcLocalizationMvcBuilderExtensions.cs
Origem:
MvcLocalizationMvcBuilderExtensions.cs
Origem:
MvcLocalizationMvcBuilderExtensions.cs

Adiciona serviços de localização de exibição MVC ao aplicativo.

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

Parâmetros

format
LanguageViewLocationExpanderFormat

O formato de exibição para exibições localizadas.

setupAction
Action<LocalizationOptions>

Uma ação para configurar o LocalizationOptions.

Retornos

O IMvcBuilder.

Aplica-se a