TemplateBinder Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TemplateBinder(UrlEncoder, ObjectPool<UriBuildingContext>, RouteTemplate, RouteValueDictionary)
- Source:
- TemplateBinder.cs
- Source:
- TemplateBinder.cs
Creates a new instance of 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)
Parameters
- urlEncoder
- UrlEncoder
The UrlEncoder.
- pool
- ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext>
The ObjectPool<T>.
- template
- RouteTemplate
The RouteTemplate to bind values to.
- defaults
- RouteValueDictionary
The default values for template
.
Applies to
TemplateBinder(UrlEncoder, ObjectPool<UriBuildingContext>, RoutePattern, RouteValueDictionary, IEnumerable<String>, IEnumerable<ValueTuple<String, IParameterPolicy>>)
- Source:
- TemplateBinder.cs
Creates a new instance of 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)))
Parameters
- urlEncoder
- UrlEncoder
The UrlEncoder.
- pool
- ObjectPool<Microsoft.AspNetCore.Routing.Internal.UriBuildingContext>
The ObjectPool<T>.
- pattern
- RoutePattern
The RoutePattern to bind values to.
- defaults
- RouteValueDictionary
The default values for pattern
. Optional.
- requiredKeys
- IEnumerable<String>
Keys used to determine if the ambient values apply. Optional.
- parameterPolicies
- IEnumerable<ValueTuple<String,IParameterPolicy>>
A list of (String, IParameterPolicy) pairs to evalute when producing a URI.