Compartir a través de


MvcLocalizationMvcCoreBuilderExtensions.AddViewLocalization Método

Definición

Sobrecargas

AddViewLocalization(IMvcCoreBuilder)

Agrega servicios de localización de vistas de MVC a la aplicación.

AddViewLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat)

Agrega servicios de localización de vistas de MVC a la aplicación.

AddViewLocalization(IMvcCoreBuilder, Action<LocalizationOptions>)

Agrega servicios de localización de vistas de MVC a la aplicación.

AddViewLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

Agrega servicios de localización de vistas de MVC a la aplicación.

AddViewLocalization(IMvcCoreBuilder)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Agrega servicios de localización de vistas de MVC a la aplicación.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddViewLocalization (builder As IMvcCoreBuilder) As IMvcCoreBuilder

Parámetros

Devoluciones

IMvcCoreBuilder.

Comentarios

Agregar localización también agrega compatibilidad con las vistas a través AddViews(IMvcCoreBuilder) de y el motor de vistas de Razor a través de AddRazorViewEngine(IMvcCoreBuilder).

Se aplica a

AddViewLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Agrega servicios de localización de vistas de MVC a la aplicación.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddViewLocalization (builder As IMvcCoreBuilder, format As LanguageViewLocationExpanderFormat) As IMvcCoreBuilder

Parámetros

format
LanguageViewLocationExpanderFormat

Formato de vista para vistas localizadas.

Devoluciones

IMvcCoreBuilder.

Comentarios

Agregar localización también agrega compatibilidad con las vistas a través AddViews(IMvcCoreBuilder) de y el motor de vistas de Razor a través de AddRazorViewEngine(IMvcCoreBuilder).

Se aplica a

AddViewLocalization(IMvcCoreBuilder, Action<LocalizationOptions>)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Agrega servicios de localización de vistas de MVC a la aplicación.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions> setupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.Extensions.Localization.LocalizationOptions>? setupAction);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.Extensions.Localization.LocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddViewLocalization (builder As IMvcCoreBuilder, setupAction As Action(Of LocalizationOptions)) As IMvcCoreBuilder

Parámetros

setupAction
Action<LocalizationOptions>

Acción para configurar .LocalizationOptions

Devoluciones

IMvcCoreBuilder.

Comentarios

Agregar localización también agrega compatibilidad con las vistas a través AddViews(IMvcCoreBuilder) de y el motor de vistas de Razor a través de AddRazorViewEngine(IMvcCoreBuilder).

Se aplica a

AddViewLocalization(IMvcCoreBuilder, LanguageViewLocationExpanderFormat, Action<LocalizationOptions>)

Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs
Source:
MvcLocalizationMvcCoreBuilderExtensions.cs

Agrega servicios de localización de vistas de MVC a la aplicación.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, Action<Microsoft.Extensions.Localization.LocalizationOptions> setupAction);
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddViewLocalization (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat format, Action<Microsoft.Extensions.Localization.LocalizationOptions>? setupAction);
static member AddViewLocalization : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Microsoft.AspNetCore.Mvc.Razor.LanguageViewLocationExpanderFormat * Action<Microsoft.Extensions.Localization.LocalizationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddViewLocalization (builder As IMvcCoreBuilder, format As LanguageViewLocationExpanderFormat, setupAction As Action(Of LocalizationOptions)) As IMvcCoreBuilder

Parámetros

format
LanguageViewLocationExpanderFormat

Formato de vista para vistas localizadas.

setupAction
Action<LocalizationOptions>

Acción para configurar .LocalizationOptions

Devoluciones

IMvcCoreBuilder.

Comentarios

Agregar localización también agrega compatibilidad con las vistas a través AddViews(IMvcCoreBuilder) de y el motor de vistas de Razor a través de AddRazorViewEngine(IMvcCoreBuilder).

Se aplica a