共用方式為


ExpandoObject.ICollection<KeyValuePair<String,Object>>.Add 方法

定義

將指定的值加入具有指定索引鍵的 ICollection<T> 中。

 virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Add(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>::Add;
void ICollection<KeyValuePair<string,object>>.Add (System.Collections.Generic.KeyValuePair<string,object> item);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Add : System.Collections.Generic.KeyValuePair<string, obj> -> unit
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Add : System.Collections.Generic.KeyValuePair<string, obj> -> unit
Sub Add (item As KeyValuePair(Of String, Object)) Implements ICollection(Of KeyValuePair(Of String, Object)).Add

參數

item
KeyValuePair<String,Object>

KeyValuePair<TKey,TValue> 結構,代表要加入集合的索引鍵和值。

實作

適用於