共用方式為


SqlCommand.IDbCommand.ExecuteReader 方法

定義

多載

IDbCommand.ExecuteReader()

CommandText 傳送至 Connection,並建置 SqlDataReader

IDbCommand.ExecuteReader(CommandBehavior)

CommandText 傳送至 Connection,並使用其中一個 CommandBehavior 值來建置 SqlDataReader

IDbCommand.ExecuteReader()

CommandText 傳送至 Connection,並建置 SqlDataReader

 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

傳回

SqlDataReader 物件。

實作

適用於

IDbCommand.ExecuteReader(CommandBehavior)

CommandText 傳送至 Connection,並使用其中一個 CommandBehavior 值來建置 SqlDataReader

 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 值。

傳回

SqlDataReader 物件。

實作

適用於