Partager via


MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine Méthode

Définition

Surcharges

AddRazorViewEngine(IMvcCoreBuilder)

Inscrit les services du moteur d’affichage Razor.

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Inscrit les services du moteur d’affichage Razor.

AddRazorViewEngine(IMvcCoreBuilder)

Source:
MvcRazorMvcCoreBuilderExtensions.cs
Source:
MvcRazorMvcCoreBuilderExtensions.cs
Source:
MvcRazorMvcCoreBuilderExtensions.cs

Inscrit les services du moteur d’affichage 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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

Retours

L’IMvcCoreBuilderopérateur

S’applique à

AddRazorViewEngine(IMvcCoreBuilder, Action<RazorViewEngineOptions>)

Source:
MvcRazorMvcCoreBuilderExtensions.cs
Source:
MvcRazorMvcCoreBuilderExtensions.cs
Source:
MvcRazorMvcCoreBuilderExtensions.cs

Inscrit les services du moteur d’affichage 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

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

setupAction
Action<RazorViewEngineOptions>

Action d’installation qui configure le RazorViewEngineOptions.

Retours

L’IMvcCoreBuilderopérateur

S’applique à