DbCommand.ExecuteReader Método

Definição

Executa o CommandText no Connection e retorna um DbDataReader.Executes the CommandText against the Connection and returns a DbDataReader.

Sobrecargas

ExecuteReader()

Executa o CommandText no Connection e retorna um DbDataReader.Executes the CommandText against the Connection, and returns an DbDataReader.

ExecuteReader(CommandBehavior)

Executa o CommandText para o Connection e retorna um DbDataReader usando um dos valores de CommandBehavior.Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.

ExecuteReader()

Executa o CommandText no Connection e retorna um DbDataReader.Executes the CommandText against the Connection, and returns an DbDataReader.

public:
 System::Data::Common::DbDataReader ^ ExecuteReader();
public System.Data.Common.DbDataReader ExecuteReader ();
member this.ExecuteReader : unit -> System.Data.Common.DbDataReader
Public Function ExecuteReader () As DbDataReader

Retornos

DbDataReader

Um objeto DbDataReader.A DbDataReader object.

Aplica-se a

ExecuteReader(CommandBehavior)

Executa o CommandText para o Connection e retorna um DbDataReader usando um dos valores de CommandBehavior.Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.

public:
 System::Data::Common::DbDataReader ^ ExecuteReader(System::Data::CommandBehavior behavior);
public System.Data.Common.DbDataReader ExecuteReader (System.Data.CommandBehavior behavior);
member this.ExecuteReader : System.Data.CommandBehavior -> System.Data.Common.DbDataReader
Public Function ExecuteReader (behavior As CommandBehavior) As DbDataReader

Parâmetros

behavior
CommandBehavior

Um dos valores de enumeração que especifica o comportamento do comando.One of the enumeration values that specifies the command behavior.

Retornos

DbDataReader

Um objeto DbDataReader.An DbDataReader object.

Aplica-se a