Partager via


SqlClientFactory.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 un instance fortement typé DbDataAdapter :

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

S’applique à

Voir aussi