Condividi tramite


MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Metodo

Definizione

Overload

AddRazorPages(IMvcCoreBuilder)

Registrare i servizi necessari per Razor Pages.

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Registrare i servizi necessari per Razor Pages.

AddRazorPages(IMvcCoreBuilder)

Origine:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Origine:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Origine:
MvcRazorPagesMvcCoreBuilderExtensions.cs

Registrare i servizi necessari per Razor Pages.

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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

Restituisce

Oggetto IMvcCoreBuilder.

Si applica a

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Origine:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Origine:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Origine:
MvcRazorPagesMvcCoreBuilderExtensions.cs

Registrare i servizi necessari per Razor Pages.

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

Parametri

builder
IMvcCoreBuilder

Oggetto IMvcCoreBuilder.

setupAction
Action<RazorPagesOptions>

Azione per configurare .RazorPagesOptions

Restituisce

Oggetto IMvcCoreBuilder.

Si applica a