다음을 통해 공유


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사용되는 instance.

version
Int32

이 경로의 버전입니다.

적용 대상