Partager via


IVsDataConnectionManager.InvalidateConnection Method (Guid, String, Boolean)

Removes the specified data connection if it exists and is a weak reference.

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

Parameters

  • provider
    Type: System.Guid

    The GUID of the DDEX provider.

  • connectionString
    Type: System.String

    The connection string in unencrypted or encrypted form.

  • encryptedString
    Type: System.Boolean

    A Boolean value indicating whether the connection string is encrypted (true) or unencrypted (false).

Return Value

Type: System.Boolean
true if the specified data connection is found and removed; otherwise, false.

.NET Framework Security

See Also

Reference

IVsDataConnectionManager Interface

InvalidateConnection Overload

Microsoft.VisualStudio.Data.Services Namespace