Bagikan melalui


RouteCollection Kelas

Definisi

Mendukung pengelolaan koleksi untuk beberapa rute.

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
Warisan
RouteCollection
Penerapan

Konstruktor

RouteCollection()

Mendukung pengelolaan koleksi untuk beberapa rute.

Properti

Count

Mendapatkan jumlah total rute yang terdaftar dalam koleksi.

Item[Int32]

Mendapatkan rute pada indeks tertentu.

Metode

Add(IRouter)

Menambahkan pengumpulan rute yang ditentukan dalam router.

GetVirtualPath(VirtualPathContext)

Mengembalikan URL yang terkait dengan detail rute yang disediakan di context

RouteAsync(RouteContext)

Secara asinkron merutekan berdasarkan saat ini context.

Berlaku untuk