Dela via


MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages Method

Definition

Overloads

AddRazorPages(IMvcCoreBuilder)

Register services needed for Razor Pages.

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

Register services needed for Razor Pages.

AddRazorPages(IMvcCoreBuilder)

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

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

Returns

The IMvcCoreBuilder.

Applies to

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

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

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

setupAction
Action<RazorPagesOptions>

The action to setup the RazorPagesOptions.

Returns

The IMvcCoreBuilder.

Applies to