DataConnectionSupport.Open(Boolean) Method

Definition

Opens the specified 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 the Open 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 (or have their own prompting mechanism) should ignore this parameter, and always assume a value of false.

Returns

Returns true if the connection was opened successfully and does not require a prompt.Returns 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 this value only when a data provider has also implemented the DataConnectionPromptDialog class.

Applies to