Share via


IDataConnectionUIControl.Initialize Method

Initializes the data connection user interface (UI) control with an instance of the IDataConnectionProperties interface, which serves as the store for the data shown on the data connection UI control.

Namespace:  Microsoft.Data.ConnectionUI
Assembly:  Microsoft.Data.ConnectionUI (in Microsoft.Data.ConnectionUI.dll)

Syntax

'Declaration
Sub Initialize ( _
    connectionProperties As IDataConnectionProperties _
)
void Initialize(
    IDataConnectionProperties connectionProperties
)
void Initialize(
    IDataConnectionProperties^ connectionProperties
)
abstract Initialize : 
        connectionProperties:IDataConnectionProperties -> unit
function Initialize(
    connectionProperties : IDataConnectionProperties
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The connectionProperties parameter is null.

ArgumentException

The connectionProperties parameter is not a valid implementation of DataConnectionProperties understood by this connection UI control.

Remarks

This method is called immediately after the connection UI control is instantiated and before any call to the LoadProperties method.

.NET Framework Security

See Also

Reference

IDataConnectionUIControl Interface

Microsoft.Data.ConnectionUI Namespace