Updated: November 2007
Adds a new data connection with the specified properties.
Function AddConnection ( _ connectionName As String, _ provider As Guid, _ connectionString As String, _ encryptedString As Boolean _ ) As IVsDataExplorerConnection
Dim instance As IVsDataExplorerConnectionManager Dim connectionName As String Dim provider As Guid Dim connectionString As String Dim encryptedString As Boolean Dim returnValue As IVsDataExplorerConnection returnValue = instance.AddConnection(connectionName, _ provider, connectionString, encryptedString)
IVsDataExplorerConnection AddConnection( string connectionName, Guid provider, string connectionString, bool encryptedString )
IVsDataExplorerConnection^ AddConnection( String^ connectionName, Guid provider, String^ connectionString, bool encryptedString )
function AddConnection( connectionName : String, provider : Guid, connectionString : String, encryptedString : boolean ) : IVsDataExplorerConnection
The name of the data connection.
The GUID of the DDEX provider.
The connection string, in unencrypted or encrypted form, containing the connection properties.
A Boolean value indicating whether the connectionString parameter is encrypted (true) or not (false).
An IVsDataExplorerConnection object representing the new data connection.
When you create a new connection, the name of the data connection in the Visual Studio Server Explorer is by default a composite string consisting of the server name, database name, and schema. However, you can supply a custom name for the data connection. This method allows you to set the data connection name.