Partager via


OleDbFactory.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 OleDbFactory = OleDbFactory.Instance
Dim cmd As DbDataAdapter = newFactory.CreateDataAdapter()
OleDbFactory newFactory = OleDbFactory.Instance;
DbDataAdapter cmd = newFactory.CreateDataAdapter();

S’applique à