Route 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Route(IRouter, String, IInlineConstraintResolver)
- Source:
- Route.cs
- Source:
- Route.cs
- Source:
- Route.cs
构造新的 Route 实例。
public:
Route(Microsoft::AspNetCore::Routing::IRouter ^ target, System::String ^ routeTemplate, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ inlineConstraintResolver);
public Route (Microsoft.AspNetCore.Routing.IRouter target, string routeTemplate, Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver);
new Microsoft.AspNetCore.Routing.Route : Microsoft.AspNetCore.Routing.IRouter * string * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNetCore.Routing.Route
Public Sub New (target As IRouter, routeTemplate As String, inlineConstraintResolver As IInlineConstraintResolver)
参数
- routeTemplate
- String
路由模板的字符串表示形式。
- inlineConstraintResolver
- IInlineConstraintResolver
IInlineConstraintResolver用于解析内联约束的 。
适用于
Route(IRouter, String, RouteValueDictionary, IDictionary<String,Object>, RouteValueDictionary, IInlineConstraintResolver)
- Source:
- Route.cs
- Source:
- Route.cs
- Source:
- Route.cs
构造新的 Route 实例。
public:
Route(Microsoft::AspNetCore::Routing::IRouter ^ target, System::String ^ routeTemplate, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ defaults, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ constraints, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ dataTokens, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ inlineConstraintResolver);
public Route (Microsoft.AspNetCore.Routing.IRouter target, string routeTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, System.Collections.Generic.IDictionary<string,object> constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens, Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver);
public Route (Microsoft.AspNetCore.Routing.IRouter target, string routeTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, System.Collections.Generic.IDictionary<string,object>? constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary? dataTokens, Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver);
new Microsoft.AspNetCore.Routing.Route : Microsoft.AspNetCore.Routing.IRouter * string * Microsoft.AspNetCore.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNetCore.Routing.Route
Public Sub New (target As IRouter, routeTemplate As String, defaults As RouteValueDictionary, constraints As IDictionary(Of String, Object), dataTokens As RouteValueDictionary, inlineConstraintResolver As IInlineConstraintResolver)
参数
- routeTemplate
- String
路由模板的字符串表示形式。
- defaults
- RouteValueDictionary
路由中参数的默认值。
- constraints
- IDictionary<String,Object>
路由的约束。
- dataTokens
- RouteValueDictionary
路由的数据令牌。
- inlineConstraintResolver
- IInlineConstraintResolver
IInlineConstraintResolver用于解析内联约束的 。
适用于
Route(IRouter, String, String, RouteValueDictionary, IDictionary<String,Object>, RouteValueDictionary, IInlineConstraintResolver)
- Source:
- Route.cs
- Source:
- Route.cs
- Source:
- Route.cs
构造新的 Route 实例。
public:
Route(Microsoft::AspNetCore::Routing::IRouter ^ target, System::String ^ routeName, System::String ^ routeTemplate, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ defaults, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ constraints, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ dataTokens, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ inlineConstraintResolver);
public Route (Microsoft.AspNetCore.Routing.IRouter target, string routeName, string routeTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary defaults, System.Collections.Generic.IDictionary<string,object> constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary dataTokens, Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver);
public Route (Microsoft.AspNetCore.Routing.IRouter target, string? routeName, string? routeTemplate, Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, System.Collections.Generic.IDictionary<string,object>? constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary? dataTokens, Microsoft.AspNetCore.Routing.IInlineConstraintResolver inlineConstraintResolver);
new Microsoft.AspNetCore.Routing.Route : Microsoft.AspNetCore.Routing.IRouter * string * string * Microsoft.AspNetCore.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNetCore.Routing.Route
Public Sub New (target As IRouter, routeName As String, routeTemplate As String, defaults As RouteValueDictionary, constraints As IDictionary(Of String, Object), dataTokens As RouteValueDictionary, inlineConstraintResolver As IInlineConstraintResolver)
参数
- routeName
- String
路由的名称。
- routeTemplate
- String
路由模板的字符串表示形式。
- defaults
- RouteValueDictionary
路由中参数的默认值。
- constraints
- IDictionary<String,Object>
路由的约束。
- dataTokens
- RouteValueDictionary
路由的数据令牌。
- inlineConstraintResolver
- IInlineConstraintResolver
IInlineConstraintResolver用于解析内联约束的 。