Partager via


DataConnectionDialog.ShowDialog Method

Definition

Overloads

ShowDialog()

Shows the Data Connection dialog box with the selected data provider and connection string settings pre-populated.

ShowDialog(Boolean)

Shows the Data Connection dialog box pre-populated with the data provider and connection string settings and returns an open connection based on the connection string settings.

ShowDialog()

Shows the Data Connection dialog box with the selected data provider and connection string settings pre-populated.

public:
 abstract bool ShowDialog();
public abstract bool ShowDialog ();
abstract member ShowDialog : unit -> bool
Public MustOverride Function ShowDialog () As Boolean

Returns

Returns true if the user exited the dialog by clicking the accept button; otherwise, returns false.

Applies to

ShowDialog(Boolean)

Shows the Data Connection dialog box pre-populated with the data provider and connection string settings and returns an open connection based on the connection string settings.

public:
 abstract Microsoft::VisualStudio::Data::DataConnection ^ ShowDialog(bool connect);
public abstract Microsoft.VisualStudio.Data.DataConnection ShowDialog (bool connect);
abstract member ShowDialog : bool -> Microsoft.VisualStudio.Data.DataConnection
Public MustOverride Function ShowDialog (connect As Boolean) As DataConnection

Parameters

connect
Boolean

Boolean value indicating whether the dialog box should attempt to open the connection before returning.

Returns

Returns true if the dialog box should attempt to open the connection; otherwise returns false.

Applies to