RazorRuntimeCompilationMvcBuilderExtensions.AddRazorRuntimeCompilation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddRazorRuntimeCompilation(IMvcBuilder) |
IMvcBuilder配置为支持 Razor 视图和 Razor 页面的运行时编译。 |
AddRazorRuntimeCompilation(IMvcBuilder, Action<MvcRazorRuntimeCompilationOptions>) |
IMvcBuilder配置为支持 Razor 视图和 Razor 页面的运行时编译。 |
AddRazorRuntimeCompilation(IMvcBuilder)
IMvcBuilder配置为支持 Razor 视图和 Razor 页面的运行时编译。
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddRazorRuntimeCompilation (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder);
static member AddRazorRuntimeCompilation : Microsoft.Extensions.DependencyInjection.IMvcBuilder -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddRazorRuntimeCompilation (builder As IMvcBuilder) As IMvcBuilder
参数
- builder
- IMvcBuilder
返回
适用于
AddRazorRuntimeCompilation(IMvcBuilder, Action<MvcRazorRuntimeCompilationOptions>)
IMvcBuilder配置为支持 Razor 视图和 Razor 页面的运行时编译。
public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddRazorRuntimeCompilation (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Action<Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.MvcRazorRuntimeCompilationOptions> setupAction);
static member AddRazorRuntimeCompilation : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Action<Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.MvcRazorRuntimeCompilationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddRazorRuntimeCompilation (builder As IMvcBuilder, setupAction As Action(Of MvcRazorRuntimeCompilationOptions)) As IMvcBuilder
参数
- builder
- IMvcBuilder
- setupAction
- Action<MvcRazorRuntimeCompilationOptions>
用于配置 的操作 MvcRazorRuntimeCompilationOptions。