DbCommand.ExecuteReader Yöntem

Tanım

CommandText' A karşı yürütülür Connection ve döndürür DbDataReader .Executes the CommandText against the Connection and returns a DbDataReader.

Aşırı Yüklemeler

ExecuteReader()

CommandText Connection ' I ' a karşı yürütür ve döndürür DbDataReader .Executes the CommandText against the Connection, and returns an DbDataReader.

ExecuteReader(CommandBehavior)

CommandText Connection ' I ' a karşı yürütür ve DbDataReader değerlerinden birini kullanarak döndürür CommandBehavior .Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.

ExecuteReader()

CommandText Connection ' I ' a karşı yürütür ve döndürür 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

Döndürülenler

DbDataReader

Bir DbDataReader nesnesi.A DbDataReader object.

Ayrıca bkz.

Şunlara uygulanır

ExecuteReader(CommandBehavior)

CommandText Connection ' I ' a karşı yürütür ve DbDataReader değerlerinden birini kullanarak döndürür 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

Parametreler

behavior
CommandBehavior

Komut davranışını belirten sabit listesi değerlerinden biri.One of the enumeration values that specifies the command behavior.

Döndürülenler

DbDataReader

Bir DbDataReader nesnesi.An DbDataReader object.

Ayrıca bkz.

Şunlara uygulanır