ConnectionDialog.ShowDialogValidateConnection 메서드

Used to collect the connection information and to validate it by establishing a live connection.

네임스페이스:  Microsoft.SqlServer.Management.UI.ConnectionDlg
어셈블리:  ConnectionDlg(ConnectionDlg.dll)

public DialogResult ShowDialogValidateConnection(
	IWin32Window parent,
	ref UIConnectionInfo ci,
	out IDbConnection connection

매개 변수

유형: System.Windows.Forms.IWin32Window
The Win32 window that owns the dialog box, for example the application main window. Can be a null value if the connection dialog box is top level and does not have a parent.
유형: Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo
The connection information.
유형: System.Data.IDbConnection
The connection that is tried.

반환 값

유형: System.Windows.Forms.DialogResult
The result of the dialog box after the validation.