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
'宣言
Sub Initialize ( _
connectionProperties As IDataConnectionProperties _
)
'使用
Dim instance As IDataConnectionUIControl
Dim connectionProperties As IDataConnectionProperties
instance.Initialize(connectionProperties)
void Initialize(
IDataConnectionProperties connectionProperties
)
void Initialize(
IDataConnectionProperties^ connectionProperties
)
function Initialize(
connectionProperties : IDataConnectionProperties
)
Parameters
connectionProperties
Type: Microsoft.Data.ConnectionUI.IDataConnectionPropertiesThe 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.
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
IDataConnectionUIControl Interface