Compartir a través de


MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Método

Definición

Sobrecargas

AddRazorPages(IMvcCoreBuilder)

Registre los servicios necesarios para Razor Pages.

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Registre los servicios necesarios para Razor Pages.

AddRazorPages(IMvcCoreBuilder)

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

Registre los servicios necesarios para 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

Devoluciones

IMvcCoreBuilder.

Se aplica a

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

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

Registre los servicios necesarios para 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>

Acción para configurar .RazorPagesOptions

Devoluciones

IMvcCoreBuilder.

Se aplica a