Partilhar via


MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Método

Definição

Sobrecargas

AddRazorPages(IMvcCoreBuilder)

Registre os serviços necessários para o Razor Pages.

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Registre os serviços necessários para o Razor Pages.

AddRazorPages(IMvcCoreBuilder)

Origem:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Origem:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Origem:
MvcRazorPagesMvcCoreBuilderExtensions.cs

Registre os serviços necessários para o 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

Parâmetros

Retornos

O IMvcCoreBuilder.

Aplica-se a

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Origem:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Origem:
MvcRazorPagesMvcCoreBuilderExtensions.cs
Origem:
MvcRazorPagesMvcCoreBuilderExtensions.cs

Registre os serviços necessários para o 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

Parâmetros

setupAction
Action<RazorPagesOptions>

A ação para configurar o RazorPagesOptions.

Retornos

O IMvcCoreBuilder.

Aplica-se a