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

定义

Connection 执行 CommandText 并生成 IDataReaderExecutes the CommandText against the Connection and builds an IDataReader.

重载

IDbCommand.ExecuteReader() IDbCommand.ExecuteReader() IDbCommand.ExecuteReader()

Connection 执行 CommandText 并生成 IDataReaderExecutes the CommandText against the Connection and builds an IDataReader.

IDbCommand.ExecuteReader(CommandBehavior) IDbCommand.ExecuteReader(CommandBehavior) IDbCommand.ExecuteReader(CommandBehavior)

Connection 执行 CommandText,并使用 CommandBehavior 值之一生成 IDataReaderExecutes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values.

IDbCommand.ExecuteReader() IDbCommand.ExecuteReader() IDbCommand.ExecuteReader()

Connection 执行 CommandText 并生成 IDataReaderExecutes the CommandText against the Connection and builds an IDataReader.

 virtual System::Data::IDataReader ^ System.Data.IDbCommand.ExecuteReader() = System::Data::IDbCommand::ExecuteReader;
System.Data.IDataReader IDbCommand.ExecuteReader ();
Function ExecuteReader () As IDataReader Implements IDbCommand.ExecuteReader

返回

实现

注解

此成员是显式的接口成员实现。This member is an explicit interface member implementation. 它只能在 DbCommand 实例强制转换为 IDbCommand 接口时使用。It can be used only when the DbCommand instance is cast to an IDbCommand interface.

有关详情,请参阅ExecuteReaderFor more information, see ExecuteReader.

另请参阅

IDbCommand.ExecuteReader(CommandBehavior) IDbCommand.ExecuteReader(CommandBehavior) IDbCommand.ExecuteReader(CommandBehavior)

Connection 执行 CommandText,并使用 CommandBehavior 值之一生成 IDataReaderExecutes the CommandText against the Connection, and builds an IDataReader using one of the CommandBehavior values.

 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);
Function ExecuteReader (behavior As CommandBehavior) As IDataReader Implements IDbCommand.ExecuteReader

参数

返回

实现

注解

此成员是显式的接口成员实现。This member is an explicit interface member implementation. 它只能在 DbCommand 实例强制转换为 IDbCommand 接口时使用。It can be used only when the DbCommand instance is cast to an IDbCommand interface.

有关详情,请参阅ExecuteReaderFor more information, see ExecuteReader.

另请参阅

适用于