RouteCollection Class

Definition

Supports managing a collection for multiple routes.

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
Inheritance
RouteCollection
Implements

Constructors

RouteCollection()

Properties

Count

Gets the total number of routes registered in the collection.

Item[Int32]

Gets the route at a given index.

Methods

Add(IRouter)

Appends the collection of routes defined in router.

GetVirtualPath(VirtualPathContext)

Returns the URL that is associated with the route details provided in context

RouteAsync(RouteContext)

Asynchronously routes based on the current context.

Applies to