LinkMenuExpand(external link)DocumentSearchCopyCopied

MySqlTransaction.RollbackAsync method (1 of 2)

Asynchronously rolls back the database transaction.

public override Task RollbackAsync(CancellationToken cancellationToken = default)
parameterdescription
cancellationTokenA token to cancel the asynchronous operation.

Return Value

A Task representing the asynchronous operation.

See Also


MySqlTransaction.RollbackAsync method (2 of 2)

Asynchronously rolls back the current transaction to the savepoint with the specified savepointName without aborting the transaction.

public override Task RollbackAsync(string savepointName, 
    CancellationToken cancellationToken = default)
parameterdescription
savepointNameThe savepoint name.
cancellationTokenA token to cancel the asynchronous operation.

Return Value

A Task representing the asynchronous operation.

Remarks

The name must have been created with SaveAsync, but not released by calling ReleaseAsync.

The proposed ADO.NET API that this is based on is not finalized; this API may change in the future.

See Also