Version

CreateConnection Method (WebScheduleOleDbProvider)

Establishes a database connection from the supplied ConnectionString to an OLE DB Data Provider.
Syntax
'Declaration
 
Protected Overrides Function CreateConnection( _
   ByVal connectionStr As String _
) As IDbConnection
protected override IDbConnection CreateConnection( 
   string connectionStr
)

Parameters

connectionStr
A connection string that should be valid for the OLE DB Data Provider.

Return Value

A general-purpose IDbConnection representing a database connection usable in a provider-independent manner.
Remarks

Inheritors must override this virtual factory method in order to provide an OleDbConnection using the supplied connectionString. CreateConnection will be called by the Connection property when the connection is first demanded.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also