Share via


ITransaction.Abort Method

Definition

Abort (rolls back) the transaction.

public void Abort();
abstract member Abort : unit -> unit
Public Sub Abort ()

Remarks

<exception cref="T:System.Fabric.TransactionFaultedException">The transaction has been internally faulted by the system. Retry the operation on a new transaction</exception> <exception cref="T:System.InvalidOperationException"> Thrown when a method call is invalid for the object's current state. Example, transaction used is already terminated: committed or aborted by the user. If this exception is thrown, it is highly likely that there is a bug in the service code of the use of transactions. </exception> <exception cref="T:System.Fabric.FabricNotPrimaryException"> The transaction includes updates to IReliableState and the ReplicaRole is not Primary. Only Primary replicas are given write status. </exception>

Applies to