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

实现

适用于