TreeRouteBuilder 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
TreeRouteBuilder(ILoggerFactory, ObjectPool<UriBuildingContext>, IInlineConstraintResolver) |
初始化 TreeRouteBuilder 的新執行個體。 |
TreeRouteBuilder(ILoggerFactory, UrlEncoder, ObjectPool<UriBuildingContext>, IInlineConstraintResolver) |
已淘汰.
此建構函式已經過時,將會在未來版本中移除。 建議的替代方法是不採用 UrlEncoder 的多載。 初始化 TreeRouteBuilder 的新執行個體。 |
TreeRouteBuilder(ILoggerFactory, ObjectPool<UriBuildingContext>, IInlineConstraintResolver)
初始化 TreeRouteBuilder 的新執行個體。
public:
TreeRouteBuilder(Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::ObjectPool::ObjectPool<Microsoft::AspNetCore::Routing::Internal::UriBuildingContext ^> ^ objectPool, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ constraintResolver);
public TreeRouteBuilder (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> objectPool, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver);
new Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder : Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder
Public Sub New (loggerFactory As ILoggerFactory, objectPool As ObjectPool(Of UriBuildingContext), constraintResolver As IInlineConstraintResolver)
參數
- loggerFactory
- ILoggerFactory
- objectPool
- ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext>
- constraintResolver
- IInlineConstraintResolver
適用於
TreeRouteBuilder(ILoggerFactory, UrlEncoder, ObjectPool<UriBuildingContext>, IInlineConstraintResolver)
警告
This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that does not take a UrlEncoder.
此建構函式已經過時,將會在未來版本中移除。 建議的替代方法是不採用 UrlEncoder 的多載。
初始化 TreeRouteBuilder 的新執行個體。
public:
TreeRouteBuilder(Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::Text::Encodings::Web::UrlEncoder ^ urlEncoder, Microsoft::Extensions::ObjectPool::ObjectPool<Microsoft::AspNetCore::Routing::Internal::UriBuildingContext ^> ^ objectPool, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ constraintResolver);
public TreeRouteBuilder (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Text.Encodings.Web.UrlEncoder urlEncoder, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> objectPool, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver);
[System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that does not take a UrlEncoder.")]
public TreeRouteBuilder (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Text.Encodings.Web.UrlEncoder urlEncoder, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> objectPool, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver);
new Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder : Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder
[<System.Obsolete("This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that does not take a UrlEncoder.")>]
new Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder : Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNetCore.Routing.Tree.TreeRouteBuilder
Public Sub New (loggerFactory As ILoggerFactory, urlEncoder As UrlEncoder, objectPool As ObjectPool(Of UriBuildingContext), constraintResolver As IInlineConstraintResolver)
參數
- loggerFactory
- ILoggerFactory
- urlEncoder
- UrlEncoder
- objectPool
- ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext>
- constraintResolver
- IInlineConstraintResolver
- 屬性