IVsDataConnectionSupport.Open(Boolean) Method

Definition

When implemented by a class, opens the specified data connection.

public:
 bool Open(bool doPromptCheck);
public bool Open (bool doPromptCheck);
abstract member Open : bool -> bool
Public Function Open (doPromptCheck As Boolean) As Boolean

Parameters

doPromptCheck
Boolean

Indicates whether the call to this method should return false for specific errors that relate to missing connection information, as opposed to simply throwing an error in all cases of failure. Data providers that do not implement a prompt dialog box (or have their own prompting mechanism) should ignore this parameter and always assume a value of false.

Returns

true if the connection was opened successfully and does not require a prompt; false if the connection is missing required connection information and a prompt should be displayed to obtain the missing information form the user. You should return false only when a provider has implemented the DataConnectionPromptDialog class.

Applies to