TreeRouter Constructeur
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée une instance de 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)
Paramètres
- trees
- UrlMatchingTree[]
Liste de UrlMatchingTree qui contient les entrées d’itinéraire.
- linkGenerationEntries
- IEnumerable<OutboundRouteEntry>
Jeu de OutboundRouteEntry.
- urlEncoder
- UrlEncoder
L’UrlEncoderopérateur
- objectPool
- ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext>
L’ObjectPool<T>opérateur
- constraintLogger
- ILogger
Le ILogger instance utilisé dans RouteConstraintMatcher.
- version
- Int32
Version de cet itinéraire.