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.BooleanBoolean 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.