Compartir a través de


MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine Método

Definición

Sobrecargas

AddRazorViewEngine(IMvcCoreBuilder)

Registra los servicios del motor de vistas de Razor.

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Registra los servicios del motor de vistas de Razor.

AddRazorViewEngine(IMvcCoreBuilder)

Source:
MvcRazorMvcCoreBuilderExtensions.cs
Source:
MvcRazorMvcCoreBuilderExtensions.cs
Source:
MvcRazorMvcCoreBuilderExtensions.cs

Registra los servicios del motor de vistas de Razor.

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

Parámetros

Devoluciones

IMvcCoreBuilder.

Se aplica a

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Source:
MvcRazorMvcCoreBuilderExtensions.cs
Source:
MvcRazorMvcCoreBuilderExtensions.cs
Source:
MvcRazorMvcCoreBuilderExtensions.cs

Registra los servicios del motor de vistas de Razor.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorViewEngine (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> setupAction);
static member AddRazorViewEngine : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.Razor.RazorViewEngineOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddRazorViewEngine (builder As IMvcCoreBuilder, setupAction As Action(Of RazorViewEngineOptions)) As IMvcCoreBuilder

Parámetros

setupAction
Action<RazorViewEngineOptions>

Una acción de instalación que configura .RazorViewEngineOptions

Devoluciones

IMvcCoreBuilder.

Se aplica a