共用方式為


TemplateBinder 建構函式

定義

多載

TemplateBinder(UrlEncoder, ObjectPool<UriBuildingContext>, RouteTemplate, RouteValueDictionary)

建立 TemplateBinder 的新執行個體。

TemplateBinder(UrlEncoder, ObjectPool<UriBuildingContext>, RoutePattern, RouteValueDictionary, IEnumerable<String>, IEnumerable<ValueTuple<String, IParameterPolicy>>)

建立 TemplateBinder 的新執行個體。

TemplateBinder(UrlEncoder, ObjectPool<UriBuildingContext>, RouteTemplate, RouteValueDictionary)

來源:
TemplateBinder.cs
來源:
TemplateBinder.cs

建立 TemplateBinder 的新執行個體。

public:
 TemplateBinder(System::Text::Encodings::Web::UrlEncoder ^ urlEncoder, Microsoft::Extensions::ObjectPool::ObjectPool<Microsoft::AspNetCore::Routing::Internal::UriBuildingContext ^> ^ pool, Microsoft::AspNetCore::Routing::Template::RouteTemplate ^ template, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ defaults);
public TemplateBinder (System.Text.Encodings.Web.UrlEncoder urlEncoder, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> pool, Microsoft.AspNetCore.Routing.Template.RouteTemplate template, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults);
new Microsoft.AspNetCore.Routing.Template.TemplateBinder : System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> * Microsoft.AspNetCore.Routing.Template.RouteTemplate * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.Template.TemplateBinder
Public Sub New (urlEncoder As UrlEncoder, pool As ObjectPool(Of UriBuildingContext), template As RouteTemplate, defaults As RouteValueDictionary)

參數

urlEncoder
UrlEncoder

UrlEncoder

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

ObjectPool<T>

template
RouteTemplate

RouteTemplate 系結值的 。

defaults
RouteValueDictionary

template 預設值。

適用於

TemplateBinder(UrlEncoder, ObjectPool<UriBuildingContext>, RoutePattern, RouteValueDictionary, IEnumerable<String>, IEnumerable<ValueTuple<String, IParameterPolicy>>)

來源:
TemplateBinder.cs

建立 TemplateBinder 的新執行個體。

public:
 TemplateBinder(System::Text::Encodings::Web::UrlEncoder ^ urlEncoder, Microsoft::Extensions::ObjectPool::ObjectPool<Microsoft::AspNetCore::Routing::Internal::UriBuildingContext ^> ^ pool, Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ pattern, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ defaults, System::Collections::Generic::IEnumerable<System::String ^> ^ requiredKeys, System::Collections::Generic::IEnumerable<ValueTuple<System::String ^, Microsoft::AspNetCore::Routing::IParameterPolicy ^>> ^ parameterPolicies);
public TemplateBinder (System.Text.Encodings.Web.UrlEncoder urlEncoder, Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> pool, Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, System.Collections.Generic.IEnumerable<string> requiredKeys, System.Collections.Generic.IEnumerable<(string parameterName, Microsoft.AspNetCore.Routing.IParameterPolicy policy)> parameterPolicies);
new Microsoft.AspNetCore.Routing.Template.TemplateBinder : System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.ObjectPool.ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext> * Microsoft.AspNetCore.Routing.Patterns.RoutePattern * Microsoft.AspNetCore.Routing.RouteValueDictionary * seq<string> * seq<ValueTuple<string, Microsoft.AspNetCore.Routing.IParameterPolicy>> -> Microsoft.AspNetCore.Routing.Template.TemplateBinder
Public Sub New (urlEncoder As UrlEncoder, pool As ObjectPool(Of UriBuildingContext), pattern As RoutePattern, defaults As RouteValueDictionary, requiredKeys As IEnumerable(Of String), parameterPolicies As IEnumerable(Of ValueTuple(Of String, IParameterPolicy)))

參數

urlEncoder
UrlEncoder

UrlEncoder

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

ObjectPool<T>

pattern
RoutePattern

RoutePattern 系結值的 。

defaults
RouteValueDictionary

pattern 預設值。 選擇性。

requiredKeys
IEnumerable<String>

用來判斷環境值套用的索引鍵。 選擇性。

parameterPolicies
IEnumerable<ValueTuple<String,IParameterPolicy>>

產生 URI 時, (、 IParameterPolicy) 配對的清單 String

適用於