Partager via


MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Méthode

Définition

Surcharges

AddRazorPages(IMvcCoreBuilder)

Inscrivez les services nécessaires pour les pages Razor.

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Inscrivez les services nécessaires pour les pages Razor.

AddRazorPages(IMvcCoreBuilder)

Source:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Source:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Source:
MvcRazorPagesMvcCoreBuilderExtensions.cs

Inscrivez les services nécessaires pour les pages Razor.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorPages (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder);
static member AddRazorPages : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddRazorPages (builder As IMvcCoreBuilder) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

Retours

L’IMvcCoreBuilderopérateur

S’applique à

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Source:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Source:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Source:
MvcRazorPagesMvcCoreBuilderExtensions.cs

Inscrivez les services nécessaires pour les pages Razor.

public static Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder AddRazorPages (this Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder builder, Action<Microsoft.AspNetCore.Mvc.RazorPages.RazorPagesOptions> setupAction);
static member AddRazorPages : Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder * Action<Microsoft.AspNetCore.Mvc.RazorPages.RazorPagesOptions> -> Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
<Extension()>
Public Function AddRazorPages (builder As IMvcCoreBuilder, setupAction As Action(Of RazorPagesOptions)) As IMvcCoreBuilder

Paramètres

builder
IMvcCoreBuilder

L’IMvcCoreBuilderopérateur

setupAction
Action<RazorPagesOptions>

Action permettant de configurer le RazorPagesOptions.

Retours

L’IMvcCoreBuilderopérateur

S’applique à