TemplateBinderFactory.Create 方法

定义

重载

Create(RoutePattern)

从提供的 pattern创建一个新的 TemplateBinder

Create(RouteTemplate, RouteValueDictionary)

TemplateBinder从提供的 templatedefaults创建新的 。

Create(RoutePattern)

Source:
TemplateBinderFactory.cs

从提供的 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

参数

返回

一个 TemplateBinder

适用于

Create(RouteTemplate, RouteValueDictionary)

Source:
TemplateBinderFactory.cs

TemplateBinder从提供的 templatedefaults创建新的 。

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

路由模板中未显示的额外默认值的集合。

返回

一个 TemplateBinder

适用于