ConnectionDialog.TryToConnect 메서드

Opens the connection using a given connection info without showing any UI.

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

public DialogResult TryToConnect(
	IWin32Window parent,
	ref UIConnectionInfo connectInfo,
	out IDbConnection connection
)

매개 변수

parent
유형: System.Windows.Forms.IWin32Window
The main server.
connectInfo
유형: Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo
Connection info to use.
connection
유형: System.Data.IDbConnection
The SqlConnection.

반환 값

유형: System.Windows.Forms.DialogResult
The database connection to be connected.

커뮤니티 추가 항목

추가
표시: