AdoDotNetConnectionProperties.ICollection<KeyValuePair<String, Object>>.ICollection 方法

添加新的属性到当前连接属性集合。 引发 PropertyChanged 事件。

命名空间:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
程序集:  Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)

语法

声明
Private Sub Add ( _
    item As KeyValuePair(Of String, Object) _
) Implements ICollection(Of KeyValuePair(Of String, Object)).Add
void ICollection<KeyValuePair<string, Object>>.Add(
    KeyValuePair<string, Object> item
)
private:
virtual void Add(
    KeyValuePair<String^, Object^> item
) sealed = ICollection<KeyValuePair<String^, Object^>>::Add
private abstract Add : 
        item:KeyValuePair<string, Object> -> unit  
private override Add : 
        item:KeyValuePair<string, Object> -> unit
JScript 不支持显式接口实现。

参数

  • item
    类型:KeyValuePair<String, Object>

    要添加的属性。

实现

ICollection.Add(UTP)

.NET Framework 安全性

请参阅

参考

AdoDotNetConnectionProperties 类

Microsoft.VisualStudio.Data.Framework.AdoDotNet 命名空间