共用方式為


RelationalTransaction.RollbackToSavepointAsync 方法

定義

復原在指定儲存點建立後執行的所有命令。

public virtual System.Threading.Tasks.Task RollbackToSavepointAsync (string name, System.Threading.CancellationToken cancellationToken = default);
abstract member RollbackToSavepointAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RollbackToSavepointAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function RollbackToSavepointAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task

參數

name
String

要復原的儲存點名稱。

cancellationToken
CancellationToken

CancellationToken等候工作完成時要觀察的 。

傳回

代表非同步作業的 Task

實作

適用於