DbCommand.ExecuteDbDataReader(CommandBehavior) DbCommand.ExecuteDbDataReader(CommandBehavior) DbCommand.ExecuteDbDataReader(CommandBehavior) DbCommand.ExecuteDbDataReader(CommandBehavior) Method

定义

对连接执行命令文本。Executes the command text against the connection.

protected:
 abstract System::Data::Common::DbDataReader ^ ExecuteDbDataReader(System::Data::CommandBehavior behavior);
protected abstract System.Data.Common.DbDataReader ExecuteDbDataReader (System.Data.CommandBehavior behavior);
abstract member ExecuteDbDataReader : System.Data.CommandBehavior -> System.Data.Common.DbDataReader
Protected MustOverride Function ExecuteDbDataReader (behavior As CommandBehavior) As DbDataReader

参数

返回

表示该操作的任务。A task representing the operation.

异常

执行命令文本时出现的一个错误。An error occurred while executing the command text.

适用于

另请参阅