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
'宣言
Sub Add ( _
propertyName As String _
)
'使用
Dim instance As IDataConnectionProperties
Dim propertyName As String
instance.Add(propertyName)
void Add(
string propertyName
)
void Add(
String^ propertyName
)
function Add(
propertyName : String
)
Parameters
propertyName
Type: System.StringName 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. |
Permissions
- 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
IDataConnectionProperties Members