Freigeben über


IVsDataConnection.EquivalentTo-Methode

Gibt an, ob die angegebenen Datenverbindungsinformationen, wie durch die Anbieter-GUID und eine Verbindungszeichenfolge dargestellt, auf die aktuelle Instanz der Datenverbindung entsprechen.

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

Syntax

'Declaration
Function EquivalentTo ( _
    provider As Guid, _
    connectionString As String, _
    encryptedString As Boolean _
) As Boolean
bool EquivalentTo(
    Guid provider,
    string connectionString,
    bool encryptedString
)
bool EquivalentTo(
    Guid provider, 
    String^ connectionString, 
    bool encryptedString
)
abstract EquivalentTo : 
        provider:Guid * 
        connectionString:string * 
        encryptedString:bool -> bool
function EquivalentTo(
    provider : Guid, 
    connectionString : String, 
    encryptedString : boolean
) : boolean

Parameter

  • provider
    Typ: Guid

    Der GUID des Datenanbieters.

  • connectionString
    Typ: String

    Die Verbindungszeichenfolge, die Verbindungseigenschaften und - werte enthält.

  • encryptedString
    Typ: Boolean

    Ein Zahl Boolean-Wert, ob die Verbindungszeichenfolge verschlüsselt ist.

Rückgabewert

Typ: Boolean
true , wenn die angegebenen Datenverbindungsinformationen auf die aktuelle Instanz gleich sind; andernfalls false.

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsDataConnection Schnittstelle

Microsoft.VisualStudio.Data.Services-Namespace