RelationalTransaction.ReleaseSavepointAsync(String, CancellationToken) 方法

定义

销毁以前在当前事务中定义的保存点。 这允许系统在事务结束之前回收一些资源。

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

参数

name
String

要释放的保存点的名称。

cancellationToken
CancellationToken

等待 CancellationToken 任务完成时要观察的 。

返回

表示异步操作的 Task

实现

适用于