Share via


VerifyConnectionDelegate Delegate

Represents a delegate that is used to open live connection and thus verify connection info collected by the dialog.

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

Syntax

'Declaration
Public Delegate Function VerifyConnectionDelegate ( _
    ci As UIConnectionInfo, _
    serverType As IServerType _
) As IDbConnection
'Usage
Dim instance As New VerifyConnectionDelegate(AddressOf HandlerMethod)
public delegate IDbConnection VerifyConnectionDelegate(
    UIConnectionInfo ci,
    IServerType serverType
)
public delegate IDbConnection^ VerifyConnectionDelegate(
    UIConnectionInfo^ ci, 
    IServerType^ serverType
)
type VerifyConnectionDelegate = 
    delegate of 
        ci:UIConnectionInfo * 
        serverType:IServerType -> IDbConnection
JScript supports the use of delegates, but not the declaration of new ones.

Parameters

Return Value

Type: System.Data.IDbConnection
An IDbConnection which represents the connection.