Share via


SqlServerType.IConnectionValidator.CheckConnection Method

Checks if successfully opened connection should be returned to the calling application Throws NotSupportedException exception if it should be bounced with error message as the exception text.

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

Syntax

'Declaration
Private Sub CheckConnection ( _
    conn As IDbConnection _
) Implements IConnectionValidator.CheckConnection
'Usage
Dim instance As SqlServerType 
Dim conn As IDbConnection 

CType(instance, IConnectionValidator).CheckConnection(conn)
void IConnectionValidator.CheckConnection(
    IDbConnection conn
)
private:
virtual void CheckConnection(
    IDbConnection^ conn
) sealed = IConnectionValidator::CheckConnection
private abstract CheckConnection : 
        conn:IDbConnection -> unit  
private override CheckConnection : 
        conn:IDbConnection -> unit
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

Implements

IConnectionValidator.CheckConnection(IDbConnection)

See Also

Reference

SqlServerType Class

Microsoft.SqlServer.Management.UI.ConnectionDlg Namespace