Freigeben über


MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine Methode

Definition

Überlädt

AddRazorViewEngine(IMvcCoreBuilder)

Registriert Razor View Engine-Dienste.

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Registriert Razor View Engine-Dienste.

AddRazorViewEngine(IMvcCoreBuilder)

Quelle:
MvcRazorMvcCoreBuilderExtensions.cs
Quelle:
MvcRazorMvcCoreBuilderExtensions.cs
Quelle:
MvcRazorMvcCoreBuilderExtensions.cs

Registriert Razor View Engine-Dienste.

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

Parameter

Gibt zurück

Die IMvcCoreBuilder.

Gilt für:

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Quelle:
MvcRazorMvcCoreBuilderExtensions.cs
Quelle:
MvcRazorMvcCoreBuilderExtensions.cs
Quelle:
MvcRazorMvcCoreBuilderExtensions.cs

Registriert Razor View Engine-Dienste.

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

Parameter

setupAction
Action<RazorViewEngineOptions>

Eine Setupaktion, die konfiguriert.RazorViewEngineOptions

Gibt zurück

Die IMvcCoreBuilder.

Gilt für: