共用方式為


RouteBuilder 建構函式

定義

多載

RouteBuilder(IApplicationBuilder)

在給定 applicationBuilder 的情況下建構新的 RouteBuilder 實例。

RouteBuilder(IApplicationBuilder, IRouter)

建構給定 applicationBuilderdefaultHandler 的新 RouteBuilder 實例。

RouteBuilder(IApplicationBuilder)

來源:
RouteBuilder.cs
來源:
RouteBuilder.cs
來源:
RouteBuilder.cs

在給定 applicationBuilder 的情況下建構新的 RouteBuilder 實例。

public:
 RouteBuilder(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ applicationBuilder);
public RouteBuilder (Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder);
new Microsoft.AspNetCore.Routing.RouteBuilder : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Routing.RouteBuilder
Public Sub New (applicationBuilder As IApplicationBuilder)

參數

applicationBuilder
IApplicationBuilder

IApplicationBuilder 執行個體。

適用於

RouteBuilder(IApplicationBuilder, IRouter)

來源:
RouteBuilder.cs
來源:
RouteBuilder.cs
來源:
RouteBuilder.cs

建構給定 applicationBuilderdefaultHandler 的新 RouteBuilder 實例。

public:
 RouteBuilder(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ applicationBuilder, Microsoft::AspNetCore::Routing::IRouter ^ defaultHandler);
public RouteBuilder (Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder, Microsoft.AspNetCore.Routing.IRouter defaultHandler);
public RouteBuilder (Microsoft.AspNetCore.Builder.IApplicationBuilder applicationBuilder, Microsoft.AspNetCore.Routing.IRouter? defaultHandler);
new Microsoft.AspNetCore.Routing.RouteBuilder : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Routing.IRouter -> Microsoft.AspNetCore.Routing.RouteBuilder
Public Sub New (applicationBuilder As IApplicationBuilder, defaultHandler As IRouter)

參數

applicationBuilder
IApplicationBuilder

IApplicationBuilder 執行個體。

defaultHandler
IRouter

如果未使用處理程式加入新的路由,則會使用預設值 IRouter

適用於