Share via


SqlCeProviderFactory.CreateConnection Method

Returns a new instance of the provider's class that implements the [System.Data.Common.DbConnection].

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Overrides Function CreateConnection As DbConnection
'Usage
Dim instance As SqlCeProviderFactory
Dim returnValue As DbConnection

returnValue = instance.CreateConnection()
public override DbConnection CreateConnection()
public:
virtual DbConnection^ CreateConnection() override
abstract CreateConnection : unit -> DbConnection 
override CreateConnection : unit -> DbConnection 
public override function CreateConnection() : DbConnection

Return Value

Type: System.Data.Common.DbConnection
A new instance of [System.Data.Common.DbConnection].

See Also

Reference

SqlCeProviderFactory Class

System.Data.SqlServerCe Namespace