Share via


RouteCollection 類別

定義

支援管理多個路由的集合。

public ref class RouteCollection : Microsoft::AspNetCore::Routing::IRouteCollection, Microsoft::AspNetCore::Routing::IRouter
public class RouteCollection : Microsoft.AspNetCore.Routing.IRouteCollection, Microsoft.AspNetCore.Routing.IRouter
type RouteCollection = class
    interface IRouteCollection
    interface IRouter
Public Class RouteCollection
Implements IRouteCollection, IRouter
繼承
RouteCollection
實作

建構函式

RouteCollection()

支援管理多個路由的集合。

屬性

Count

取得在集合中註冊的路由總數。

Item[Int32]

取得指定索引處的路由。

方法

Add(IRouter)

附加 中 router 定義的路由集合。

GetVirtualPath(VirtualPathContext)

傳回與 中提供的路由詳細資料相關聯的 URL context

RouteAsync(RouteContext)

根據目前的 context 以非同步方式路由傳送。

適用於