ImmutableSortedDictionary<TKey,TValue>.IDictionary.Add(Object, Object) 方法
定义
将具有所提供键和值的元素添加到字典对象。Adds an element with the provided key and value to the dictionary 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
用作要添加的元素的键的对象。The object to use as the key of the element to add.
- value
- Object
用作要添加的元素的值的对象。The object to use as the value of the element to add.
实现
注解
此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ImmutableSortedDictionary<TKey,TValue> 实例被强制转换为 IDictionary 接口时使用。It can be used only when the ImmutableSortedDictionary<TKey,TValue> instance is cast to an IDictionary interface.