Initializes a data connection. This method should not be called by client code.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Protected MustOverride Function CreateDataConnection ( _
provider As Guid, _
connectionString As String, _
encryptedString As Boolean _
) As DataConnection
'Usage
Dim provider As Guid
Dim connectionString As String
Dim encryptedString As Boolean
Dim returnValue As DataConnection
returnValue = Me.CreateDataConnection(provider, _
connectionString, encryptedString)
protected abstract DataConnection CreateDataConnection(
Guid provider,
string connectionString,
bool encryptedString
)
protected:
virtual DataConnection^ CreateDataConnection(
Guid provider,
String^ connectionString,
bool encryptedString
) abstract
protected abstract function CreateDataConnection(
provider : Guid,
connectionString : String,
encryptedString : boolean
) : DataConnection
Parameters
provider
Type: System.GuidDDEX provider GUID.
connectionString
Type: System.StringDDEX provider connection string.
encryptedString
Type: System.BooleanIndication whether the connection string information is encrypted (true if encrypted.)
Return Value
Type: Microsoft.VisualStudio.Data.DataConnection
This method is part of the DDEX infrastructure and is not intended to be called from your code.
To obtain an existing or create a new connection, use the GetDataConnection method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.