RouteBuilder 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RouteBuilder(IApplicationBuilder) |
在給定 |
RouteBuilder(IApplicationBuilder, IRouter) |
建構給定 |
RouteBuilder(IApplicationBuilder)
在給定 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)
建構給定 applicationBuilder
和 defaultHandler
的新 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 執行個體。