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)


Public Overrides Function CreateConnection As DbConnection
Dim instance As SqlCeProviderFactory
Dim returnValue As DbConnection

returnValue = instance.CreateConnection()
public override DbConnection CreateConnection()
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


SqlCeProviderFactory Class

System.Data.SqlServerCe Namespace