共用方式為


OracleCommand.IDbCommand.ExecuteReader 方法

定義

多載

IDbCommand.ExecuteReader()

針對 Connection 執行 CommandText,並建置 IDataReader

IDbCommand.ExecuteReader(CommandBehavior)

針對 CommandText 執行 Connection,並使用其中一個 IDataReader 值來建置 CommandBehavior

IDbCommand.ExecuteReader()

針對 Connection 執行 CommandText,並建置 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

傳回

IDataReader 物件。

實作

適用於

IDbCommand.ExecuteReader(CommandBehavior)

針對 CommandText 執行 Connection,並使用其中一個 IDataReader 值來建置 CommandBehavior

 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

參數

behavior
CommandBehavior

其中一個 CommandBehavior 值。

傳回

IDataReader 物件。

實作

備註

如需詳細資訊,請參閱ExecuteReader

適用於