語言

DbCommandDispatcher.ReaderAsync 方法

定義

public virtual System.Threading.Tasks.Task<System.Data.Common.DbDataReader> ReaderAsync(System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext interceptionContext, System.Threading.CancellationToken cancellationToken);
abstract member ReaderAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Common.DbDataReader>
override this.ReaderAsync : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Common.DbDataReader>

參數

command
DbCommand

執行行動的指令。

interceptionContext
DbCommandInterceptionContext

關於通話背景的可選資訊。

cancellationToken
CancellationToken

非同步操作的取消令牌。

傳回

該行動的結果可能被攔截機修改。

備註

請注意,執行指令的結果會由此方法回傳。 由於截取上下文在傳遞給攔截者之前,該結果無法在傳輸到攔截者之前取得。

適用於