DataConnectionProperties.Add 方法

定義

多載

Add(String, Object)

將新的屬性加入至目前的連接屬性集合。Adds a new property to the current connection properties collection.

Add(String, Type, Object)

將新的屬性加入至目前的連接屬性集合。Adds a new property to the current connection properties collection.

Add(String, Object)

將新的屬性加入至目前的連接屬性集合。Adds a new property to the current connection properties collection.

public:
 virtual void Add(System::String ^ key, System::Object ^ value);
public void Add (string key, object value);
abstract member Add : string * obj -> unit
override this.Add : string * obj -> unit
Public Sub Add (key As String, value As Object)

參數

key
String

要加入之屬性的名稱。Name of the property being added.

value
Object

要加入之屬性的值。Value of the property being added.

實作

例外狀況

key 參數為 null。The key parameter is null.

資料連線屬性不是可擴充的。The data connection properties are not extensible.

屬性已經存在。The property already exists.

適用於

Add(String, Type, Object)

將新的屬性加入至目前的連接屬性集合。Adds a new property to the current connection properties collection.

public:
 virtual void Add(System::String ^ key, Type ^ type, System::Object ^ value);
public void Add (string key, Type type, object value);
abstract member Add : string * Type * obj -> unit
override this.Add : string * Type * obj -> unit
Public Sub Add (key As String, type As Type, value As Object)

參數

key
String

要加入之屬性的名稱。Name of the property being added.

type
Type

Type代表屬性類型的物件。A Type object representing the type of the property.

value
Object

要加入之屬性的值。Value of the property being added.

實作

例外狀況

key 參數為 null。The key parameter is null.

資料連線屬性不是可擴充的。The data connection properties are not extensible.

屬性已經存在。The property already exists.

適用於