Compartir a través de


DataConnection.Open Method

Opens this data connection.

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

Syntax

Public MustOverride Sub Open

Dim instance As DataConnection

instance.Open()
public abstract void Open()
public:
virtual void Open() abstract
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.

Nota

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

Permissions

See Also

Reference

DataConnection Class

DataConnection Members

Microsoft.VisualStudio.Data Namespace

DataConnection