DataConnectionUIControl.Initialize Method
Initializes connection UI control by providing a DataConnectionProperties instance to be used for persisting the properties.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Sub Initialize ( _
connectionProperties As DataConnectionProperties _
)
public void Initialize(
DataConnectionProperties connectionProperties
)
public:
void Initialize(
DataConnectionProperties^ connectionProperties
)
member Initialize :
connectionProperties:DataConnectionProperties -> unit
public function Initialize(
connectionProperties : DataConnectionProperties
)
Parameters
connectionProperties
Type: Microsoft.VisualStudio.Data.DataConnectionPropertiesConnection property to initialize.
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. |
.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.