Share via


IVsDataExplorerConnectionManager.FindConnection(Guid, String, Boolean) Method

Definition

Searches for an existing data connection that matches the specified properties.

public:
 Microsoft::VisualStudio::Data::Services::IVsDataExplorerConnection ^ FindConnection(Guid provider, System::String ^ connectionString, bool encryptedString);
public Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection FindConnection (Guid provider, string connectionString, bool encryptedString);
abstract member FindConnection : Guid * string * bool -> Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection
Public Function FindConnection (provider As Guid, connectionString As String, encryptedString As Boolean) As IVsDataExplorerConnection

Parameters

provider
Guid

The GUID of the DDEX provider for the associated data connection.

connectionString
String

The connection string, in unencrypted or encrypted form, containing the connection properties.

encryptedString
Boolean

A Boolean value indicating whether the connectionString parameter is encrypted (true) or not (false).

Returns

An IVsDataExplorerConnection object representing an existing data connection that matches the specified properties, or null if none is found.

Applies to