AdoDotNetConnectionSupport.Open Method
Opens the specified data connection.
Namespace: Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Public Overrides Function Open ( _
doPromptCheck As Boolean _
) As Boolean
'Usage
Dim instance As AdoDotNetConnectionSupport
Dim doPromptCheck As Boolean
Dim returnValue As Boolean
returnValue = instance.Open(doPromptCheck)
public override bool Open(
bool doPromptCheck
)
public:
virtual bool Open(
bool doPromptCheck
) override
public override function Open(
doPromptCheck : boolean
) : boolean
Parameters
doPromptCheck
Type: System.BooleanIndicates whether the call to the Open method should return false for specified errors that relate to missing connection information.
Return Value
Type: System.Boolean
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 form the user. You should return false only when a provider has implemented the DataConnectionPromptDialog class.
Implements
IVsDataConnectionSupport.Open(Boolean)
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
AdoDotNetConnectionSupport Members