共用方式為


EntityCommand.ExecuteDbDataReaderAsync 方法

定義

以非同步方式執行 命令,並傳回資料讀取器來讀取結果

[System.Diagnostics.DebuggerStepThrough]
protected override System.Threading.Tasks.Task<System.Data.Common.DbDataReader> ExecuteDbDataReaderAsync(System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken);
override this.ExecuteDbDataReaderAsync : System.Data.CommandBehavior * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Common.DbDataReader>

參數

behavior
CommandBehavior

執行命令時要使用的行為

cancellationToken
CancellationToken

要監視取消要求的權杖

傳回

代表非同步作業的工作。 工作結果包含 DbDataReader 物件。

屬性

適用於