Compartilhar via


Método SqlCeProviderFactory.CreateConnection

Retorna uma nova instância da classe do provedor que implementa o [System.Data.Common.DbConnection].

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

Sintaxe

'Declaração
Public Overrides Function CreateConnection As DbConnection
'Uso
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

Valor de retorno

Tipo: System.Data.Common.DbConnection
Uma nova instância do [System.Data.Common.DbConnection].

Consulte também

Referência

SqlCeProviderFactory Classe

Namespace System.Data.SqlServerCe