IVsDataConnectionManager.InvalidateConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
InvalidateConnection(IVsDataConnection) |
Removes the specified data connection if it exists and is a weak reference. |
InvalidateConnection(Guid, String, Boolean) |
Removes the specified data connection if it exists and is a weak reference. |
InvalidateConnection(IVsDataConnection)
Removes the specified data connection if it exists and is a weak reference.
public:
bool InvalidateConnection(Microsoft::VisualStudio::Data::Services::IVsDataConnection ^ connection);
public bool InvalidateConnection (Microsoft.VisualStudio.Data.Services.IVsDataConnection connection);
abstract member InvalidateConnection : Microsoft.VisualStudio.Data.Services.IVsDataConnection -> bool
Public Function InvalidateConnection (connection As IVsDataConnection) As Boolean
Parameters
- connection
- IVsDataConnection
The data connection object.
Returns
true if the specified data connection is found and removed; otherwise, false.
Applies to
InvalidateConnection(Guid, String, Boolean)
Removes the specified data connection if it exists and is a weak reference.
public:
bool InvalidateConnection(Guid provider, System::String ^ connectionString, bool encryptedString);
public bool InvalidateConnection (Guid provider, string connectionString, bool encryptedString);
abstract member InvalidateConnection : Guid * string * bool -> bool
Public Function InvalidateConnection (provider As Guid, connectionString As String, encryptedString As Boolean) As Boolean
Parameters
- provider
- Guid
The GUID of the DDEX provider.
- connectionString
- String
The connection string in unencrypted or encrypted form.
- encryptedString
- Boolean
A Boolean value indicating whether the connection string is encrypted (true) or unencrypted (false).
Returns
true if the specified data connection is found and removed; otherwise, false.