Share via


IVsDataConnectionManager.InvalidateConnection Method (IVsDataConnection)

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 ( _
    connection As IVsDataConnection _
) As Boolean
bool InvalidateConnection(
    IVsDataConnection connection
)
bool InvalidateConnection(
    IVsDataConnection^ connection
)
abstract InvalidateConnection : 
        connection:IVsDataConnection -> bool
function InvalidateConnection(
    connection : IVsDataConnection
) : boolean

Parameters

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