RouteCollection Třída

Definice

Podporuje správu kolekce pro více tras.

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
Dědičnost
RouteCollection
Implementuje

Konstruktory

RouteCollection()

Vlastnosti

Count

Získá celkový počet tras registrovaných v kolekci.

Item[Int32]

Získá trasu v daném indexu.

Metody

Add(IRouter)

Připojí kolekci tras definovaných v router.

GetVirtualPath(VirtualPathContext)

Vrátí adresu URL přidruženou k podrobnostem trasy, které jsou uvedeny v části context

RouteAsync(RouteContext)

Asynchronní trasy založené na aktuálním context.

Platí pro