共用方式為


DbConnectionDispatcher.OpenAsync 方法

定義

public virtual System.Threading.Tasks.Task OpenAsync (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbInterceptionContext interceptionContext, System.Threading.CancellationToken cancellationToken);
abstract member OpenAsync : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OpenAsync : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task

參數

connection
DbConnection

將執行作業的連接。

interceptionContext
DbInterceptionContext

所要呼叫內容的選擇性資訊。

cancellationToken
CancellationToken

取消語彙基元。

傳回

代表非同步作業的工作。

適用於