ImmutableSortedDictionary<TKey,TValue>.Builder.IDictionary.Add(Object, Object) ImmutableSortedDictionary<TKey,TValue>.Builder.IDictionary.Add(Object, Object) ImmutableSortedDictionary<TKey,TValue>.Builder.IDictionary.Add(Object, Object) Method

定义

将具有所提供键和值的元素添加到字典对象。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);
Sub Add (key As Object, value As Object) Implements IDictionary.Add

参数

key
Object Object Object

要添加的元素的键。The key of the element to add.

value
Object Object Object

要添加的元素的值。The value of the element to add.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ImmutableSortedDictionary<TKey,TValue>.Builder 实例被强制转换为 IDictionary 接口时使用。It can be used only when the ImmutableSortedDictionary<TKey,TValue>.Builder instance is cast to an IDictionary interface.

适用于