AdoDotNetConnectionSupport.Open Method
Opens the specified data connection.
Namespace: Microsoft.VisualStudio.Data.AdoDotNet
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Public Overrides Function Open ( _
doPromptCheck As Boolean _
) As Boolean
public override bool Open(
bool doPromptCheck
)
public:
virtual bool Open(
bool doPromptCheck
) override
abstract Open :
doPromptCheck:bool -> bool
override Open :
doPromptCheck:bool -> bool
public override function Open(
doPromptCheck : boolean
) : boolean
Parameters
doPromptCheck
Type: System.BooleanBoolean indication whether the call to the Open method should return false for specified errors that relate to missing connection information.
Return Value
Type: System.Boolean
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 form the user. You should return false only when a provider has implemented the DataConnectionPromptDialog class.
Remarks
Any exceptions that occur indicate that a provider-specific error occurred when opening the connection.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AdoDotNetConnectionSupport Class