Condividi tramite


DataConnectionSupport.Open(Boolean) Method

Definition

Opens the specified data connection.

public:
 abstract bool Open(bool doPromptCheck);
public abstract bool Open (bool doPromptCheck);
abstract member Open : bool -> bool
Public MustOverride 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 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 from the user. You should return false only when a provider has implemented the IVsDataConnectionPromptDialog interface.

Implements

Applies to