RouteCollection Class

Namespace
Microsoft.AspNetCore.Routing
Assemblies
  • Microsoft.AspNetCore.Routing

Syntax

public class RouteCollection : IRouteCollection, IRouter
class Microsoft.AspNetCore.Routing.RouteCollection

Methods

Add(Microsoft.AspNetCore.Routing.IRouter)
public void Add(IRouter router)
GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext)
Return type:Microsoft.AspNetCore.Routing.VirtualPathData
public virtual VirtualPathData GetVirtualPath(VirtualPathContext context)
RouteAsync(Microsoft.AspNetCore.Routing.RouteContext)
Return type:System.Threading.Tasks.Task
public virtual Task RouteAsync(RouteContext context)

Properties

Microsoft.AspNetCore.Routing.RouteCollection.Count
Return type:System.Int32
public int Count { get; }
Microsoft.AspNetCore.Routing.RouteCollection.Item[System.Int32]
Return type:Microsoft.AspNetCore.Routing.IRouter
public IRouter this[int index] { get; }