MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddRazorPages(IMvcCoreBuilder) |
Registrare i servizi necessari per Razor Pages. |
AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>) |
Registrare i servizi necessari per Razor Pages. |
AddRazorPages(IMvcCoreBuilder)
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>)
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.