TreeRouteBuilder.MapInbound(IRouter, RouteTemplate, String, Int32) 方法

定义

将新的入站路由添加到 TreeRouter

public:
 Microsoft::AspNetCore::Routing::Tree::InboundRouteEntry ^ MapInbound(Microsoft::AspNetCore::Routing::IRouter ^ handler, Microsoft::AspNetCore::Routing::Template::RouteTemplate ^ routeTemplate, System::String ^ routeName, int order);
public Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry MapInbound (Microsoft.AspNetCore.Routing.IRouter handler, Microsoft.AspNetCore.Routing.Template.RouteTemplate routeTemplate, string routeName, int order);
member this.MapInbound : Microsoft.AspNetCore.Routing.IRouter * Microsoft.AspNetCore.Routing.Template.RouteTemplate * string * int -> Microsoft.AspNetCore.Routing.Tree.InboundRouteEntry
Public Function MapInbound (handler As IRouter, routeTemplate As RouteTemplate, routeName As String, order As Integer) As InboundRouteEntry

参数

handler
IRouter

IRouter用于处理路由的 。

routeTemplate
RouteTemplate

RouteTemplate路由的 。

routeName
String

路由名称。

order
Int32

路由顺序。

返回

InboundRouteEntry

适用于