Share via


MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine Method

Definition

Overloads

AddRazorViewEngine(IMvcCoreBuilder)

Registers Razor view engine services.

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Registers Razor view engine services.

AddRazorViewEngine(IMvcCoreBuilder)

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

Registers Razor view engine services.

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

Parameters

Returns

The IMvcCoreBuilder.

Applies to

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

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

Registers Razor view engine services.

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

Parameters

setupAction
Action<RazorViewEngineOptions>

A setup action that configures the RazorViewEngineOptions.

Returns

The IMvcCoreBuilder.

Applies to