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

'宣言
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.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.

Permissions

See Also

Reference

IDataConnectionProperties Interface

IDataConnectionProperties Members

Microsoft.Data.ConnectionUI Namespace

Remove

PropertyChanged