IDtcTransaction.Abort Method (IntPtr, Int32, Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Aborts a transaction.

Namespace:   System.Transactions
Assembly:  System.Transactions (in System.Transactions.dll)

void Abort(
	IntPtr reason,
	int retaining,
	int async


Type: System.IntPtr

An optional BOID that indicates why the transaction is being aborted. This parameter can be null, indicating that no reason for the abort is provided.

Type: System.Int32

This value must be false.

Type: System.Int32

When async is true, an asynchronous abort is performed and the caller must use ITransactionOutcomeEvents to learn about the outcome of the transaction.

You should not implement any method of this interface, as it is used only by the TransactionInterop class internally to represent the unmanaged version of the ITransaction interface of the System.EnterpriseServices namespace.

.NET Framework
Available since 2.0
Return to top