Share via


IServerType.GetConnectionObject Method

Returns a new IDbConnection object (closed) that is based on the passed UIConnectionInfo object.

Namespace:  Microsoft.SqlServer.Management.UI.ConnectionDlg
Assembly:  ConnectionDlg (in ConnectionDlg.dll)

Syntax

'Declaration
Function GetConnectionObject ( _
    ci As UIConnectionInfo _
) As IDbConnection
'Usage
Dim instance As IServerType
Dim ci As UIConnectionInfo
Dim returnValue As IDbConnection

returnValue = instance.GetConnectionObject(ci)
IDbConnection GetConnectionObject(
    UIConnectionInfo ci
)
IDbConnection^ GetConnectionObject(
    UIConnectionInfo^ ci
)
abstract GetConnectionObject : 
        ci:UIConnectionInfo -> IDbConnection 
function GetConnectionObject(
    ci : UIConnectionInfo
) : IDbConnection

Parameters

Return Value

Type: System.Data.IDbConnection
The new IDbConnection object.