RouteValueDictionary.FromArray(KeyValuePair<String,Object>[]) 方法

定义

RouteValueDictionary从提供的数组创建新的 。 新实例将获取数组的所有权,并可能会改变它。

public:
 static Microsoft::AspNetCore::Routing::RouteValueDictionary ^ FromArray(cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ items);
public static Microsoft.AspNetCore.Routing.RouteValueDictionary FromArray (System.Collections.Generic.KeyValuePair<string,object>[] items);
static member FromArray : System.Collections.Generic.KeyValuePair<string, obj>[] -> Microsoft.AspNetCore.Routing.RouteValueDictionary
Public Shared Function FromArray (items As KeyValuePair(Of String, Object)()) As RouteValueDictionary

参数

items
KeyValuePair<String,Object>[]

项数组。

返回

一个新的 RouteValueDictionary

适用于