Sdílet prostřednictvím


MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine Metoda

Definice

Přetížení

AddRazorViewEngine(IMvcCoreBuilder)

Zaregistruje služby modulu Razor View.

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Zaregistruje služby modulu Razor View.

AddRazorViewEngine(IMvcCoreBuilder)

Zdroj:
MvcRazorMvcCoreBuilderExtensions.cs
Zdroj:
MvcRazorMvcCoreBuilderExtensions.cs
Zdroj:
MvcRazorMvcCoreBuilderExtensions.cs

Zaregistruje služby modulu Razor View.

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

Parametry

Návraty

Hodnota IMvcCoreBuilder

Platí pro

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Zdroj:
MvcRazorMvcCoreBuilderExtensions.cs
Zdroj:
MvcRazorMvcCoreBuilderExtensions.cs
Zdroj:
MvcRazorMvcCoreBuilderExtensions.cs

Zaregistruje služby modulu Razor View.

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

Parametry

setupAction
Action<RazorViewEngineOptions>

Akce nastavení, která konfiguruje RazorViewEngineOptions.

Návraty

Hodnota IMvcCoreBuilder

Platí pro