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

定義

將具有提供之索引鍵和值的項目加入不可變字典物件。

 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

做為要加入項目之索引鍵的物件。

value
Object

做為要加入項目之值的物件。

實作

備註

這個成員是明確介面成員實作, 只有在 ImmutableDictionary<TKey,TValue> 執行個體轉換成 IDictionary 介面時,才能使用這個成員。

適用於