MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages 方法

定义

重载

AddRazorPages(IMvcCoreBuilder)

注册 Razor Pages 所需的服务。

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

注册 Razor Pages 所需的服务。

AddRazorPages(IMvcCoreBuilder)

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

注册 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

参数

返回

IMvcCoreBuilder

适用于

AddRazorPages(IMvcCoreBuilder, Action<RazorPagesOptions>)

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

注册 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

参数

setupAction
Action<RazorPagesOptions>

设置 的操作 RazorPagesOptions

返回

IMvcCoreBuilder

适用于