Поделиться через


TreeRouter Конструктор

Определение

Создает новый экземпляр TreeRouter.

public:
 TreeRouter(cli::array <Microsoft::AspNetCore::Routing::Tree::UrlMatchingTree ^> ^ trees, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Tree::OutboundRouteEntry ^> ^ linkGenerationEntries, System::Text::Encodings::Web::UrlEncoder ^ urlEncoder, Microsoft::Extensions::ObjectPool::ObjectPool<Microsoft::AspNetCore::Routing::Internal::UriBuildingContext ^> ^ objectPool, Microsoft::Extensions::Logging::ILogger ^ routeLogger, Microsoft::Extensions::Logging::ILogger ^ constraintLogger, int version);
public TreeRouter (Microsoft.AspNetCore.Routing.Tree.UrlMatchingTree[] trees, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry> linkGenerationEntries, System.Text.Encodings.Web.UrlEncoder urlEncoder, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> objectPool, Microsoft.Extensions.Logging.ILogger routeLogger, Microsoft.Extensions.Logging.ILogger constraintLogger, int version);
new Microsoft.AspNetCore.Routing.Tree.TreeRouter : Microsoft.AspNetCore.Routing.Tree.UrlMatchingTree[] * seq<Microsoft.AspNetCore.Routing.Tree.OutboundRouteEntry> * System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> * Microsoft.Extensions.Logging.ILogger * Microsoft.Extensions.Logging.ILogger * int -> Microsoft.AspNetCore.Routing.Tree.TreeRouter
Public Sub New (trees As UrlMatchingTree(), linkGenerationEntries As IEnumerable(Of OutboundRouteEntry), urlEncoder As UrlEncoder, objectPool As ObjectPool(Of UriBuildingContext), routeLogger As ILogger, constraintLogger As ILogger, version As Integer)

Параметры

trees
UrlMatchingTree[]

Список , UrlMatchingTree содержащий записи маршрута.

linkGenerationEntries
IEnumerable<OutboundRouteEntry>

Набор .OutboundRouteEntry

urlEncoder
UrlEncoder

UrlEncoder.

objectPool
ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext>

ObjectPool<T>.

routeLogger
ILogger

Экземпляр класса ILogger.

constraintLogger
ILogger

Экземпляр, используемый ILogger в RouteConstraintMatcher.

version
Int32

Версия этого маршрута.

Применяется к