IDataConnectionProperties.Add Method
Adds a custom property to the existing set of data connection properties recognized by the data provider.
Namespace: Microsoft.Data.ConnectionUI
Assembly: Microsoft.Data.ConnectionUI (in Microsoft.Data.ConnectionUI.dll)
Syntax
'Declaration
Sub Add ( _
propertyName As String _
)
void Add(
string propertyName
)
void Add(
String^ propertyName
)
abstract Add :
propertyName:string -> unit
function Add(
propertyName : String
)
Parameters
- propertyName
Type: System.String
Name of the custom property added to the existing set of connection properties.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The propertyName parameter is null. |
InvalidOperationException | The specified connection properties are not extensible. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IDataConnectionProperties Interface