EntityCommand.ExecuteDbDataReaderAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以非同步方式執行 命令,並傳回資料讀取器來讀取結果
[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 物件。
- 屬性