Partager via


DataConnection.Open Method

Opens this data connection.

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

Syntax

'Declaration
Public MustOverride Sub Open
public abstract void Open()
public:
virtual void Open() abstract
abstract Open : unit -> unit
public abstract function Open()

Remarks

If a DDEX provider has implemented the DataConnectionPromptDialog class and indicates that prompting is required in their implementation of the Open method, then this method automatically shows the prompt dialog and captures the updated settings to allow the connection to be opened.

If at any time during execution of the Open method the user cancels the operation (for example, by clicking Cancel on the prompt dialog), then a DataConnectionOpenCanceledException is thrown.

Note

Any exceptions that occur indicate that a provider-specific error occurred when trying to open the connection.

.NET Framework Security

See Also

Reference

DataConnection Class

Microsoft.VisualStudio.Data Namespace

DataConnection