Transaction.Dispose Method ()


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

Releases the resources that are held by the object.

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

abstract Dispose : unit -> unit
override Dispose : unit -> unit

If you change the ambient transaction by setting Current inside a TransactionScope an InvalidOperationException is thrown when Dispose is called, and the previous ambient transaction value is restored.

.NET Framework
Available since 2.0
Return to top