Partager via


OdbcFactory.CreateDataAdapter Méthode

Définition

Retourne une instance de DbDataAdapter fortement typée.

public:
 override System::Data::Common::DbDataAdapter ^ CreateDataAdapter();
public override System.Data.Common.DbDataAdapter CreateDataAdapter ();
override this.CreateDataAdapter : unit -> System.Data.Common.DbDataAdapter
Public Overrides Function CreateDataAdapter () As DbDataAdapter

Retours

Nouvelle instance fortement typée de DbDataAdapter.

Exemples

Le fragment de code suivant retourne une instance fortement typée DbDataAdapter :

Dim newFactory As OdbcFactory = OdbcFactory.Instance
Dim cmd As DbDataAdapter = newFactory.CreateDataAdapter()
OdbcFactory newFactory = OdbcFactory.Instance;
DbDataAdapter cmd = newFactory.CreateDataAdapter();

S’applique à