DbCommand.IDbCommand.ExecuteReader Método

Definición

Ejecuta CommandText contra Connection y genera IDataReader.Executes the CommandText against the Connection and builds an IDataReader.

Sobrecargas

IDbCommand.ExecuteReader()

Ejecuta CommandText contra Connection y genera IDataReader.Executes the CommandText against the Connection and builds an IDataReader.

IDbCommand.ExecuteReader(CommandBehavior)

Ejecuta CommandText contra Connection y genera IDataReader mediante uno de los valores de CommandBehavior.Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values.

IDbCommand.ExecuteReader()

Ejecuta CommandText contra Connection y genera IDataReader.Executes the CommandText against the Connection and builds an IDataReader.

 virtual System::Data::IDataReader ^ System.Data.IDbCommand.ExecuteReader() = System::Data::IDbCommand::ExecuteReader;
System.Data.IDataReader IDbCommand.ExecuteReader ();
abstract member System.Data.IDbCommand.ExecuteReader : unit -> System.Data.IDataReader
override this.System.Data.IDbCommand.ExecuteReader : unit -> System.Data.IDataReader
Function ExecuteReader () As IDataReader Implements IDbCommand.ExecuteReader

Devoluciones

IDataReader

Un objeto IDataReader.An IDataReader object.

Implementaciones

Comentarios

Este miembro es una implementación explícita de un miembro de interfaz.This member is an explicit interface member implementation. Solo se puede utilizar cuando la instancia de DbCommand se convierte en una interfaz IDbCommand.It can be used only when the DbCommand instance is cast to an IDbCommand interface.

Para obtener más información, vea ExecuteReader.For more information, see ExecuteReader.

Se aplica a

IDbCommand.ExecuteReader(CommandBehavior)

Ejecuta CommandText contra Connection y genera IDataReader mediante uno de los valores de CommandBehavior.Executes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values.

 virtual System::Data::IDataReader ^ System.Data.IDbCommand.ExecuteReader(System::Data::CommandBehavior behavior) = System::Data::IDbCommand::ExecuteReader;
System.Data.IDataReader IDbCommand.ExecuteReader (System.Data.CommandBehavior behavior);
abstract member System.Data.IDbCommand.ExecuteReader : System.Data.CommandBehavior -> System.Data.IDataReader
override this.System.Data.IDbCommand.ExecuteReader : System.Data.CommandBehavior -> System.Data.IDataReader
Function ExecuteReader (behavior As CommandBehavior) As IDataReader Implements IDbCommand.ExecuteReader

Parámetros

behavior
CommandBehavior

Uno de los valores de enumeración que especifica el comportamiento del comando.One of the enumeration values that specifies the command behavior.

Devoluciones

IDataReader

Un objeto IDataReader.An IDataReader object.

Implementaciones

Comentarios

Este miembro es una implementación explícita de un miembro de interfaz.This member is an explicit interface member implementation. Solo se puede utilizar cuando la instancia de DbCommand se convierte en una interfaz IDbCommand.It can be used only when the DbCommand instance is cast to an IDbCommand interface.

Para obtener más información, vea ExecuteReader.For more information, see ExecuteReader.

Se aplica a