DataConnectionProperties.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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)
Parameters
- key
- String
Name of the property being added.
- value
- Object
Value of the property being added.
Implements
Exceptions
The key
parameter is null.
The data connection properties are not extensible.
The property already exists.
Applies to
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)
Parameters
- key
- String
Name of the property being added.
- value
- Object
Value of the property being added.
Implements
Exceptions
The key
parameter is null.
The data connection properties are not extensible.
The property already exists.