DbCommandDispatcher.ReaderAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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
非同步操作的取消令牌。
傳回
該行動的結果可能被攔截機修改。
備註
請注意,執行指令的結果會由此方法回傳。 由於截取上下文在傳遞給攔截者之前,該結果無法在傳輸到攔截者之前取得。