TemplateBinderFactory.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(RoutePattern) |
從提供的 |
Create(RouteTemplate, RouteValueDictionary) |
從提供的 |
Create(RoutePattern)
從提供的 pattern
建立新的 TemplateBinder 。
public:
abstract Microsoft::AspNetCore::Routing::Template::TemplateBinder ^ Create(Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ pattern);
public abstract Microsoft.AspNetCore.Routing.Template.TemplateBinder Create (Microsoft.AspNetCore.Routing.Patterns.RoutePattern pattern);
abstract member Create : Microsoft.AspNetCore.Routing.Patterns.RoutePattern -> Microsoft.AspNetCore.Routing.Template.TemplateBinder
Public MustOverride Function Create (pattern As RoutePattern) As TemplateBinder
參數
- pattern
- RoutePattern
傳回
適用於
Create(RouteTemplate, RouteValueDictionary)
從提供的 template
和 defaults
建立新的 TemplateBinder 。
public:
abstract Microsoft::AspNetCore::Routing::Template::TemplateBinder ^ Create(Microsoft::AspNetCore::Routing::Template::RouteTemplate ^ template, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ defaults);
public abstract Microsoft.AspNetCore.Routing.Template.TemplateBinder Create (Microsoft.AspNetCore.Routing.Template.RouteTemplate template, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults);
abstract member Create : Microsoft.AspNetCore.Routing.Template.RouteTemplate * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.Template.TemplateBinder
Public MustOverride Function Create (template As RouteTemplate, defaults As RouteValueDictionary) As TemplateBinder
參數
- template
- RouteTemplate
路由範本。
- defaults
- RouteValueDictionary
路由範本中未顯示的額外預設值集合。