Redigeeri

Jagamisviis:


DbCommand.ExecuteReader Method

Definition

Executes the command against its connection, returning a DbDataReader which can be used to access the results.

Overloads

ExecuteReader()

Executes the command against its connection, returning a DbDataReader which can be used to access the results.

ExecuteReader(CommandBehavior)

Executes the command against its connection, returning a DbDataReader which can be used to access the results.

ExecuteReader()

Source:
DbCommand.cs
Source:
DbCommand.cs
Source:
DbCommand.cs

Executes the command against its connection, returning a DbDataReader which can be used to access the results.

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

A DbDataReader object.

See also

Applies to

ExecuteReader(CommandBehavior)

Source:
DbCommand.cs
Source:
DbCommand.cs
Source:
DbCommand.cs

Executes the command against its connection, returning a DbDataReader which can be used to access the results.

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

An instance of CommandBehavior, specifying options for command execution and data retrieval.

Returns

An DbDataReader object.

See also

Applies to