DbCommand.ExecuteDbDataReader(CommandBehavior) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Exécute la commande sur sa connexion, en retournant une DbDataReader option qui peut être utilisée pour accéder aux résultats.
protected:
abstract System::Data::Common::DbDataReader ^ ExecuteDbDataReader(System::Data::CommandBehavior behavior);
protected abstract System.Data.Common.DbDataReader ExecuteDbDataReader(System.Data.CommandBehavior behavior);
abstract member ExecuteDbDataReader : System.Data.CommandBehavior -> System.Data.Common.DbDataReader
Protected MustOverride Function ExecuteDbDataReader (behavior As CommandBehavior) As DbDataReader
Paramètres
- behavior
- CommandBehavior
Instance de , spécification d’options CommandBehaviorpour l’exécution de commandes et la récupération des données.
Retours
Objet DbDataReader.
Exceptions
Une erreur s’est produite lors de l’exécution de la commande.
Valeur non valide CommandBehavior .