Share via


IVsDataConnectionSupport.Open Method

When implemented by a class, opens the specified data connection.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Function Open ( _
    doPromptCheck As Boolean _
) As Boolean
bool Open(
    bool doPromptCheck
)
bool Open(
    bool doPromptCheck
)
abstract Open : 
        doPromptCheck:bool -> bool
function Open(
    doPromptCheck : boolean
) : boolean

Parameters

  • doPromptCheck
    Type: System.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.

Return Value

Type: System.Boolean
true if the connection was 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.

.NET Framework Security

See Also

Reference

IVsDataConnectionSupport Interface

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace