RouteData(Type, IReadOnlyDictionary<String,Object>) 构造函数

定义

构造 的 RouteData实例。

public:
 RouteData(Type ^ pageType, System::Collections::Generic::IReadOnlyDictionary<System::String ^, System::Object ^> ^ routeValues);
public RouteData (Type pageType, System.Collections.Generic.IReadOnlyDictionary<string,object> routeValues);
public RouteData (Type pageType, System.Collections.Generic.IReadOnlyDictionary<string,object?> routeValues);
new Microsoft.AspNetCore.Components.RouteData : Type * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.AspNetCore.Components.RouteData
Public Sub New (pageType As Type, routeValues As IReadOnlyDictionary(Of String, Object))

参数

pageType
Type

与路由匹配的页面类型,该路由必须实现 IComponent

routeValues
IReadOnlyDictionary<String,Object>

从匹配的路由中提取的路由参数值。

适用于