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 ();
abstract member CreateDataAdapter : unit -> System.Data.Common.DbDataAdapter
override this.CreateDataAdapter : unit -> System.Data.Common.DbDataAdapter
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 :

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

S’applique à