Share via


DataConnectionDialog.ShowDialog Method (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.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public MustOverride Function ShowDialog ( _
    connect As Boolean _
) As DataConnection
public abstract DataConnection ShowDialog(
    bool connect
)
public:
virtual DataConnection^ ShowDialog(
    bool connect
) abstract
abstract ShowDialog : 
        connect:bool -> DataConnection
public abstract function ShowDialog(
    connect : boolean
) : DataConnection

Parameters

  • connect
    Type: System.Boolean

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

Return Value

Type: Microsoft.VisualStudio.Data.DataConnection
Returns true if the dialog box should attempt to open the connection; otherwise returns false.

Remarks

This method calls the GetDataConnection method with the entered data provider and connection string information, passing true for the update parameter. If the connect parameter is true, it attempts to open the connection before closing the dialog box.

.NET Framework Security

See Also

Reference

DataConnectionDialog Class

ShowDialog Overload

Microsoft.VisualStudio.Data Namespace