Export (0) Print
Expand All

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, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

Community Additions

ADD
Show:
© 2014 Microsoft