Compartilhar via


DbProviderFactory.CreateConnection Método

Definição

Retorna uma nova instância da classe do provedor que implementa a classe DbConnection .

public:
 virtual System::Data::Common::DbConnection ^ CreateConnection();
public virtual System.Data.Common.DbConnection CreateConnection ();
public virtual System.Data.Common.DbConnection? CreateConnection ();
abstract member CreateConnection : unit -> System.Data.Common.DbConnection
override this.CreateConnection : unit -> System.Data.Common.DbConnection
Public Overridable Function CreateConnection () As DbConnection

Retornos

Uma nova instância de DbConnection.

Aplica-se a

Confira também