Share via


DataConnectionManager.CreateDataConnection Method

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
protected abstract DataConnection CreateDataConnection(
    Guid provider,
    string connectionString,
    bool encryptedString
)
protected:
virtual DataConnection^ CreateDataConnection(
    Guid provider, 
    String^ connectionString, 
    bool encryptedString
) abstract
abstract CreateDataConnection : 
        provider:Guid * 
        connectionString:string * 
        encryptedString:bool -> DataConnection
protected abstract function CreateDataConnection(
    provider : Guid, 
    connectionString : String, 
    encryptedString : boolean
) : DataConnection

Parameters

  • connectionString
    Type: System.String

    DDEX provider connection string.

  • encryptedString
    Type: System.Boolean

    Indication 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

See Also

Reference

DataConnectionManager Class

Microsoft.VisualStudio.Data Namespace