ConnectionDialog.ShowDialogValidateConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
member this.ShowDialogValidateConnection : System.Windows.Forms.IWin32Window * UIConnectionInfo * IDbConnection -> System.Windows.Forms.DialogResult
Public Function ShowDialogValidateConnection (parent As IWin32Window, ByRef ci As UIConnectionInfo, ByRef connection As IDbConnection) As DialogResult
Parameters
- parent
- 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.
The connection information.
- connection
- IDbConnection
The connection that is tried.
Returns
The result of the dialog box after the validation.