SqlServerType.IServerType.GetConnectionObject Method
Retrieves 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
Private Function GetConnectionObject ( _
ci As UIConnectionInfo _
) As IDbConnection Implements IServerType.GetConnectionObject
'Usage
Dim instance As SqlServerType
Dim ci As UIConnectionInfo
Dim returnValue As IDbConnection
returnValue = CType(instance, IServerType).GetConnectionObject(ci)
IDbConnection IServerType.GetConnectionObject(
UIConnectionInfo ci
)
private:
virtual IDbConnection^ GetConnectionObject(
UIConnectionInfo^ ci
) sealed = IServerType::GetConnectionObject
private abstract GetConnectionObject :
ci:UIConnectionInfo -> IDbConnection
private override GetConnectionObject :
ci:UIConnectionInfo -> IDbConnection
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Parameters
- ci
Type: Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo
The connection information.
Return Value
Type: System.Data.IDbConnection
The new IDbConnection object.