IVsDataConnectionManager.GetConnection, méthode (Guid, String, Boolean)

Extrait une connexion de données existante ou créez une nouvelle connexion de données qui correspond au fournisseur spécifié GUID et la chaîne de connexion.

Espace de noms :  Microsoft.VisualStudio.Data.Services
Assembly :  Microsoft.VisualStudio.Data.Services (dans Microsoft.VisualStudio.Data.Services.dll)

Syntaxe

'Déclaration
Function GetConnection ( _
    provider As Guid, _
    connectionString As String, _
    encryptedString As Boolean _
) As IVsDataConnection
IVsDataConnection GetConnection(
    Guid provider,
    string connectionString,
    bool encryptedString
)
IVsDataConnection^ GetConnection(
    Guid provider, 
    String^ connectionString, 
    bool encryptedString
)
abstract GetConnection : 
        provider:Guid * 
        connectionString:string * 
        encryptedString:bool -> IVsDataConnection
function GetConnection(
    provider : Guid, 
    connectionString : String, 
    encryptedString : boolean
) : IVsDataConnection

Paramètres

  • provider
    Type : Guid

    GUID du fournisseur de DDEX.

  • connectionString
    Type : String

    La chaîne de connexion dans le formulaire décryptée ou chiffrée.

  • encryptedString
    Type : Boolean

    Une valeur d' Boolean indiquant si la chaîne de connexion est chiffrée (true) ou déchiffrée (false).

Valeur de retour

Type : Microsoft.VisualStudio.Data.Services.IVsDataConnection
Un objet d' IVsDataConnection représentant la connexion de données.

Sécurité .NET Framework

Voir aussi

Référence

IVsDataConnectionManager Interface

GetConnection, surcharge

Microsoft.VisualStudio.Data.Services, espace de noms