共用方式為


OrderedDictionary<TKey,TValue>.IDictionary.Add(Object, Object) 方法

定義

將具有所提供索引鍵和值的專案加入至 IDictionary 物件。

 virtual void System.Collections.IDictionary.Add(System::Object ^ key, System::Object ^ value) = System::Collections::IDictionary::Add;
void IDictionary.Add (object key, object value);
abstract member System.Collections.IDictionary.Add : obj * obj -> unit
override this.System.Collections.IDictionary.Add : obj * obj -> unit
Sub Add (key As Object, value As Object) Implements IDictionary.Add

參數

key
Object

要作為要加入之專案索引鍵的 Object

value
Object

要作為要加入之專案值的 Object

實作

適用於