Complete Method

DependentTransaction.Complete Method ()


Attempts to complete the dependent transaction.

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

member Complete : unit -> unit

Exception Condition

Any attempt for additional work on the transaction after this method is called. These include invoking methods such as M:System.Transactions.Transaction.EnlistVolatile, M:System.Transactions.Transaction.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
Available since 2.0
Return to top
© 2015 Microsoft