RazorRuntimeCompilationMvcCoreBuilderExtensions.AddRazorRuntimeCompilation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddRazorRuntimeCompilation(IMvcCoreBuilder) |
設定 IMvcCoreBuilder 以支援 Razor 檢視和 Razor 頁面的執行時間編譯。 |
AddRazorRuntimeCompilation(IMvcCoreBuilder, Action<MvcRazorRuntimeCompilationOptions>) |
設定 IMvcCoreBuilder 以支援 Razor 檢視和 Razor 頁面的執行時間編譯。 |
AddRazorRuntimeCompilation(IMvcCoreBuilder)
設定 IMvcCoreBuilder 以支援 Razor 檢視和 Razor 頁面的執行時間編譯。
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorRuntimeCompilation (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddRazorRuntimeCompilation : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddRazorRuntimeCompilation (builder As IMvcCoreBuilder) As IMvcCoreBuilder
參數
- builder
- IMvcCoreBuilder
傳回
適用於
AddRazorRuntimeCompilation(IMvcCoreBuilder, Action<MvcRazorRuntimeCompilationOptions>)
設定 IMvcCoreBuilder 以支援 Razor 檢視和 Razor 頁面的執行時間編譯。
public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorRuntimeCompilation (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.MvcRazorRuntimeCompilationOptions> setupAction);
static member AddRazorRuntimeCompilation : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.MvcRazorRuntimeCompilationOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddRazorRuntimeCompilation (builder As IMvcCoreBuilder, setupAction As Action(Of MvcRazorRuntimeCompilationOptions)) As IMvcCoreBuilder
參數
- builder
- IMvcCoreBuilder
- setupAction
- Action<MvcRazorRuntimeCompilationOptions>
設定 的 MvcRazorRuntimeCompilationOptions 動作。