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

定义

针对 CommandText 执行 Connection,并返回 DbDataReaderExecutes the CommandText against the Connection and returns a DbDataReader.

重载

ExecuteReader() ExecuteReader() ExecuteReader() ExecuteReader()

针对 CommandText 执行 Connection,并返回 DbDataReaderExecutes the CommandText against the Connection, and returns an DbDataReader.

ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior)

针对 CommandText 执行 Connection,并使用 DbDataReader 值之一返回 CommandBehaviorExecutes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.

ExecuteReader() ExecuteReader() ExecuteReader() ExecuteReader()

针对 CommandText 执行 Connection,并返回 DbDataReaderExecutes 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

返回

另请参阅

ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior) ExecuteReader(CommandBehavior)

针对 CommandText 执行 Connection,并使用 DbDataReader 值之一返回 CommandBehaviorExecutes 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

参数

返回

另请参阅

适用于