共用方式為


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

適用於