共用方式為


RelationalTransaction.CommitAsync(CancellationToken) 方法

定義

以非同步方式認可對目前交易中資料庫所做的所有變更。

public virtual System.Threading.Tasks.Task CommitAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member CommitAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.CommitAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function CommitAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

參數

cancellationToken
CancellationToken

取消語彙基元。

傳回

代表非同步作業的 Task

實作

適用於