Freigeben über


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
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.Boolean
    Indicates 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

See Also

Reference

AdoDotNetConnectionSupport Class

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace

Open