共用方式為


IVsDataConnectionProperties.Add 方法 (String, Type, Object)

當由類別實作時,將新的屬性加入至目前連接屬性集合。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Sub Add ( _
    key As String, _
    type As Type, _
    value As Object _
)
void Add(
    string key,
    Type type,
    Object value
)
void Add(
    String^ key, 
    Type^ type, 
    Object^ value
)
abstract Add : 
        key:string * 
        type:Type * 
        value:Object -> unit
function Add(
    key : String, 
    type : Type, 
    value : Object
)

參數

  • key
    類型:String

    要加入的屬性名稱的。

  • type
    類型:Type

    表示屬性的型別 Type 物件。

  • value
    類型:Object

    要加入的屬性值。

.NET Framework 安全性

請參閱

參考

IVsDataConnectionProperties 介面

Add 多載

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空間