DbCommand.ExecuteReader DbCommand.ExecuteReader DbCommand.ExecuteReader DbCommand.ExecuteReader Method

Definition

Executes the CommandText against the Connection and returns a DbDataReader.

Overloads

ExecuteReader() ExecuteReader() ExecuteReader() ExecuteReader()

Executes the CommandText against the Connection, and returns an DbDataReader.

ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior)

Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.

ExecuteReader() ExecuteReader() ExecuteReader() ExecuteReader()

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

Returns

See also

ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior) ExecuteReader(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

Parameters

behavior
CommandBehavior CommandBehavior CommandBehavior CommandBehavior

One of the enumeration values that specifies the command behavior.

Returns

See also

Applies to