共用方式為


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

加入項目做為索引鍵/值組加入目前設定連接屬性。

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  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)

備註

這個方法會提供 Add 方法的實作。 如需詳細資訊,請參閱 Add 方法至 .NET Framework 類別庫中。

.NET Framework 安全性

請參閱

參考

DataConnectionProperties 類別

Microsoft.VisualStudio.Data.Framework 命名空間