Delen via


IDbContextTransactionManager.RollbackTransactionAsync Method

Definition

Discards all changes made to the database in the current transaction.

public System.Threading.Tasks.Task RollbackTransactionAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member RollbackTransactionAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RollbackTransactionAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for the task to complete.

Returns

A task that represents the asynchronous operation.

Exceptions

Applies to