Freigeben über


IVsDataConnectionManager.InvalidateConnection-Methode (Guid, String, Boolean)

Entfernt die angegebene Datenverbindung, wenn ein schwacher Verweis vorhanden und ist.

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

Syntax

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

Parameter

  • provider
    Typ: Guid

    Der GUID des DDEX-Anbieters.

  • connectionString
    Typ: String

    Die Verbindungszeichenfolge in der unverschlüsselten oder verschlüsselten Form.

  • encryptedString
    Typ: Boolean

    Ein Zahl Boolean-Wert, ob die Verbindungszeichenfolge verschlüsselt (true) oder unverschlüsselt ist (false).

Rückgabewert

Typ: Boolean
true , wenn die angegebene Datenverbindung gefunden und entfernt wird; andernfalls false.

.NET Framework-Sicherheit

Siehe auch

Referenz

IVsDataConnectionManager Schnittstelle

InvalidateConnection-Überladung

Microsoft.VisualStudio.Data.Services-Namespace