Share via


RouteBase 构造函数

定义

创建一个新的 RouteBase 实例。

public:
 RouteBase(System::String ^ template, System::String ^ name, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ constraintResolver, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ defaults, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ constraints, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ dataTokens);
public RouteBase (string template, string name, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, System.Collections.Generic.IDictionary<string,object> constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens);
public RouteBase (string? template, string? name, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, System.Collections.Generic.IDictionary<string,object>? constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary? dataTokens);
new Microsoft.AspNetCore.Routing.RouteBase : string * string * Microsoft.AspNetCore.Routing.IInlineConstraintResolver * Microsoft.AspNetCore.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.RouteBase
Public Sub New (template As String, name As String, constraintResolver As IInlineConstraintResolver, defaults As RouteValueDictionary, constraints As IDictionary(Of String, Object), dataTokens As RouteValueDictionary)

参数

template
String

路由模板。

name
String

路由的名称。

constraintResolver
IInlineConstraintResolver

IInlineConstraintResolver用于解析内联约束的 。

defaults
RouteValueDictionary

路由中参数的默认值。

constraints
IDictionary<String,Object>

路由的约束。

dataTokens
RouteValueDictionary

路由的数据令牌。

适用于