IVsDataExplorerConnectionManager.FindConnection, méthode

Recherche une connexion de données existante qui correspond aux propriétés spécifiées.

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

Syntaxe

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

Paramètres

  • provider
    Type : Guid

    GUID du fournisseur de DDEX de la connexion de données associée.

  • connectionString
    Type : String

    La chaîne de connexion, dans le formulaire non chiffré ni chiffré, contenant les propriétés de connexion.

  • encryptedString
    Type : Boolean

    Une valeur d'Boolean indiquant, que le paramètre connectionString être chiffré (true) ou pas (false).

Valeur de retour

Type : Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection
Objet IVsDataExplorerConnection représentant une connexion de données existante qui correspond aux propriétés spécifiées, ou nullune référence null (Nothing en Visual Basic) si aucun n'est trouvé.

Sécurité .NET Framework

Voir aussi

Référence

IVsDataExplorerConnectionManager Interface

Microsoft.VisualStudio.Data.Services, espace de noms