MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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)
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>)
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