TreeRouteBuilder 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TreeRouteBuilder(ILoggerFactory, ObjectPool<UriBuildingContext>, IInlineConstraintResolver) |
初始化 TreeRouteBuilder 的新实例。 |
TreeRouteBuilder(ILoggerFactory, UrlEncoder, ObjectPool<UriBuildingContext>, IInlineConstraintResolver) |
已过时.
此构造函数已过时,将在将来的版本中删除。 建议的替代方法是不采用 UrlEncoder 的重载。 初始化 TreeRouteBuilder 的新实例。 |
TreeRouteBuilder(ILoggerFactory, ObjectPool<UriBuildingContext>, IInlineConstraintResolver)
- Source:
- TreeRouteBuilder.cs
- Source:
- TreeRouteBuilder.cs
初始化 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)
- Source:
- TreeRouteBuilder.cs
- Source:
- TreeRouteBuilder.cs
注意
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
- 属性