MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddRazorPages(IMvcCoreBuilder) |
Register services needed for Razor Pages. |
AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>) |
Register services needed for Razor Pages. |
AddRazorPages(IMvcCoreBuilder)
Register services needed for 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
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
Returns
The IMvcCoreBuilder.
Applies to
AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)
Register services needed for 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
Parameters
- builder
- IMvcCoreBuilder
The IMvcCoreBuilder.
- setupAction
- Action<RazorPagesOptions>
The action to setup the RazorPagesOptions.
Returns
The IMvcCoreBuilder.