語言

PropertyDescriptorCollection.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用 來作為要加的元素值。

實作

例外狀況

本合集為唯讀。

value 是 null。

適用於