ConnectionDialog.ShowDialogValidateConnection(IWin32Window, UIConnectionInfo, IDbConnection) ConnectionDialog.ShowDialogValidateConnection(IWin32Window, UIConnectionInfo, IDbConnection) ConnectionDialog.ShowDialogValidateConnection(IWin32Window, UIConnectionInfo, IDbConnection) Method

정의

연결 정보를 수집하고 라이브 연결을 설정하여 유효성을 검사하는 데 사용됩니다. Used to collect the connection information and to validate it by establishing a live connection.

public:
 System::Windows::Forms::DialogResult ShowDialogValidateConnection(System::Windows::Forms::IWin32Window ^ parent, Microsoft::SqlServer::Management::Smo::RegSvrEnum::UIConnectionInfo ^ % ci, [Runtime::InteropServices::Out] System::Data::IDbConnection ^ % connection);
public System.Windows.Forms.DialogResult ShowDialogValidateConnection (System.Windows.Forms.IWin32Window parent, ref Microsoft.SqlServer.Management.Smo.RegSvrEnum.UIConnectionInfo ci, out System.Data.IDbConnection connection);
Public Function ShowDialogValidateConnection (parent As IWin32Window, ByRef ci As UIConnectionInfo, ByRef connection As IDbConnection) As DialogResult
매개 변수
parent
IWin32Window IWin32Window IWin32Window

대화 상자를 소유하는 Win32 창(예: 응용 프로그램 주 창)입니다. The Win32 window that owns the dialog box, for example the application main window. 연결 대화 상자가 최상위 수준이고 부모가 없는 경우 Null 값일 수 없습니다. Can be a null value if the connection dialog box is top level and does not have a parent.

ci
UIConnectionInfo UIConnectionInfo UIConnectionInfo

연결 정보입니다. The connection information.

connection
IDbConnection IDbConnection IDbConnection

시도되는 연결입니다. The connection that is tried.

반환

유효성 검사 후 대화 상자의 결과입니다. The result of the dialog box after the validation.

적용 대상