共用方式為


DataConnectionFactory.CreateDataConnectionImpl(Guid, String, Boolean) Method

Definition

This member supports the DDEX infrastructure and is not intended to be used directly from your code.

protected:
 abstract Microsoft::VisualStudio::Data::DataConnection ^ CreateDataConnectionImpl(Guid provider, System::String ^ connectionString, bool encryptedString);
protected abstract Microsoft.VisualStudio.Data.DataConnection CreateDataConnectionImpl (Guid provider, string connectionString, bool encryptedString);
abstract member CreateDataConnectionImpl : Guid * string * bool -> Microsoft.VisualStudio.Data.DataConnection
Protected MustOverride Function CreateDataConnectionImpl (provider As Guid, connectionString As String, encryptedString As Boolean) As DataConnection

Parameters

provider
Guid

The unique identifier of a data provider.

connectionString
String

An unencrypted or encrypted string containing connection information.

encryptedString
Boolean

Indicates whether the connectionString parameter is unencrypted or encrypted. Specifies true if encrypted.

Returns

Returns a DataConnection object instance.

Applies to