DependentTransaction.Complete Method

Attempts to complete the dependent transaction.

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

public void Complete()

ExceptionCondition
TransactionException

Any attempt for additional work on the transaction after this method is called. These include invoking methods such as EnlistVolatile, EnlistDurable, Clone, DependentClone , or any serialization operations on the transaction.

Call this method when the dependent clone wants to inform the creator of the transaction that it has finished its work, and the transaction can be committed if the parent is also ready.

After this call is invoked, you should not attempt any additional work on the transaction, or an exception is thrown.

If the application domain goes down after this method is called, and before the transaction is completed, the transaction might abort.

Note   This method should be called only once during the dependent transaction's lifetime.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft