Dispose Method

Transaction.Dispose Method ()

 

Releases the resources that are held by the object.

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

public void 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:
© 2016 Microsoft