MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddRazorPages(IMvcCoreBuilder) |
Registre los servicios necesarios para Razor Pages. |
AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>) |
Registre los servicios necesarios para Razor Pages. |
AddRazorPages(IMvcCoreBuilder)
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
- builder
- IMvcCoreBuilder
Devoluciones
Se aplica a
AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)
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
- builder
- IMvcCoreBuilder
- setupAction
- Action<RazorPagesOptions>
Acción para configurar .RazorPagesOptions