IVsDataExplorerConnectionManager.AddConnection 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.
Adds a new data connection with the specified properties.
public:
Microsoft::VisualStudio::Data::Services::IVsDataExplorerConnection ^ AddConnection(System::String ^ connectionName, Guid provider, System::String ^ connectionString, bool encryptedString);
public Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection AddConnection (string connectionName, Guid provider, string connectionString, bool encryptedString);
abstract member AddConnection : string * Guid * string * bool -> Microsoft.VisualStudio.Data.Services.IVsDataExplorerConnection
Public Function AddConnection (connectionName As String, provider As Guid, connectionString As String, encryptedString As Boolean) As IVsDataExplorerConnection
Parameters
- connectionName
- String
The name of the data connection.
- provider
- Guid
The GUID of the DDEX provider.
- 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 the new data connection.