語言

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 物件。

屬性

適用於