Freigeben über


IVsDataExplorerConnectionManager.FindConnection-Methode

Sucht eine vorhandene Datenverbindung, die die angegebenen Eigenschaften entspricht.

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

Syntax

'Declaration
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

Parameter

  • provider
    Typ: Guid

    Die GUID des DDEX-Anbieters für die Verbindung der zugeordneten Daten.

  • connectionString
    Typ: String

    Die Verbindungszeichenfolge, in der unverschlüsselten oder verschlüsselte Form, die Verbindungseigenschaften enthalten.

  • encryptedString
    Typ: Boolean

    Ein ganze Boolean-Wert, ob der Parameter connectionString (true) oder nicht verschlüsselt ist (false).

Rückgabewert

Typ: Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection
Ein IVsDataExplorerConnection-Objekt, das eine vorhandene Datenverbindung darstellen, die die angegebenen Eigenschaften entspricht oder nullein Nullverweis (Nothing in Visual Basic), wenn kein solcher Block gefunden wird.

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsDataExplorerConnectionManager Schnittstelle

Microsoft.VisualStudio.Data.Services-Namespace