MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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)
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
- builder
- IMvcCoreBuilder
Retornos
Aplica-se a
AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)
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
- builder
- IMvcCoreBuilder
- setupAction
- Action<RazorPagesOptions>
A ação para configurar o RazorPagesOptions.