MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine 方法

定义

重载

AddRazorViewEngine(IMvcCoreBuilder)

注册 Razor 视图引擎服务。

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

注册 Razor 视图引擎服务。

AddRazorViewEngine(IMvcCoreBuilder)

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

注册 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

参数

返回

IMvcCoreBuilder

适用于

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

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

注册 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

参数

setupAction
Action<RazorViewEngineOptions>

配置 的 RazorViewEngineOptions安装操作。

返回

IMvcCoreBuilder

适用于