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
'Declaración
Sub Initialize ( _
connectionProperties As IDataConnectionProperties _
)
void Initialize(
IDataConnectionProperties connectionProperties
)
void Initialize(
IDataConnectionProperties^ connectionProperties
)
abstract Initialize :
connectionProperties:IDataConnectionProperties -> unit
function Initialize(
connectionProperties : IDataConnectionProperties
)
Parameters
- connectionProperties
Type: Microsoft.Data.ConnectionUI.IDataConnectionProperties
The set of connection properties serving as stores for data shown on the data connection UI control.
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
- 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.