DbConnectionStringBuilder.IDictionary.Add(Object, Object) Method

Definition

IDictionary 对象中添加一个带有所提供的键和值的元素。Adds an element with the provided key and value to the IDictionary object.

 virtual void System.Collections.IDictionary.Add(System::Object ^ keyword, System::Object ^ value) = System::Collections::IDictionary::Add;
void IDictionary.Add (object keyword, object value);
abstract member System.Collections.IDictionary.Add : obj * obj -> unit
override this.System.Collections.IDictionary.Add : obj * obj -> unit
Sub Add (keyword As Object, value As Object) Implements IDictionary.Add

Parameters

keyword
Object

用作要添加的元素的键的 ObjectThe Object to use as the key of the element to add.

value
Object

用作要添加的元素的键的 ObjectThe Object to use as the value of the element to add.

Implements

Remarks

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

有关此成员的说明,请参见 AddFor a description of this member, see Add.

Applies to

See also