Transaction.Dispose Method ()

 
System_CAPS_noteNote

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

Releases the resources that are held by the object.

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

Public Sub Dispose

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
Show: