Transaction::TransactionCompleted Event
Indicates that the transaction is completed.
Assembly: System.Transactions (in System.Transactions.dll)
| Exception | Condition |
|---|---|
| ObjectDisposedException | An attempt to subscribe this event on a transaction that has been disposed. |
You can register for this event instead of using a volatile enlistment to get outcome information for transactions. The parameter passed to the TransactionCompletedEventHandler delegate is a Transaction instance. You can then query the TransactionInformation property of the specific instance to get an instance of TransactionInformation, whose Status property contains the status of a transaction with either the Committed or Aborted value.
Caution Signing up for this event negatively affects the performance of the transaction it is attached to.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.