Condividi tramite


MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine Metodo

Definizione

Overload

AddRazorViewEngine(IMvcCoreBuilder)

Registra i servizi del motore di visualizzazione Razor.

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Registra i servizi del motore di visualizzazione Razor.

AddRazorViewEngine(IMvcCoreBuilder)

Origine:
MvcRazorMvcCoreBuilderExtensions.cs
Origine:
MvcRazorMvcCoreBuilderExtensions.cs
Origine:
MvcRazorMvcCoreBuilderExtensions.cs

Registra i servizi del motore di visualizzazione 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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

Restituisce

Oggetto IMvcCoreBuilder.

Si applica a

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Origine:
MvcRazorMvcCoreBuilderExtensions.cs
Origine:
MvcRazorMvcCoreBuilderExtensions.cs
Origine:
MvcRazorMvcCoreBuilderExtensions.cs

Registra i servizi del motore di visualizzazione 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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

setupAction
Action<RazorViewEngineOptions>

Azione di installazione che configura l'oggetto RazorViewEngineOptions.

Restituisce

Oggetto IMvcCoreBuilder.

Si applica a