IVsDataConnectionFactory.CreateConnection(Guid, String, Boolean) 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.
Initializes a new instance of the IVsDataConnection class with the specified connection information.
public:
Microsoft::VisualStudio::Data::Services::IVsDataConnection ^ CreateConnection(Guid provider, System::String ^ connectionString, bool encryptedString);
public Microsoft.VisualStudio.Data.Services.IVsDataConnection CreateConnection (Guid provider, string connectionString, bool encryptedString);
abstract member CreateConnection : Guid * string * bool -> Microsoft.VisualStudio.Data.Services.IVsDataConnection
Public Function CreateConnection (provider As Guid, connectionString As String, encryptedString As Boolean) As IVsDataConnection
Parameters
- provider
- Guid
The unique identifier of a DDEX provider.
- connectionString
- String
An unencrypted or encrypted string containing connection information.
- encryptedString
- Boolean
Indicates whether the connectionString
parameter is unencrypted or encrypted. Specify true if encrypted.
Returns
A IVsDataConnection object representing a data connection.
Exceptions
The cconnectionString
parameter is null.
The provider
is not a registered DDEX provider.