Export (0) Print
Expand All

DependentTransaction.Complete Method

Note: This method is new in the .NET Framework version 2.0.

Attempts to complete the dependent transaction.

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

public void Complete ()
public void Complete ()
public function Complete ()

Exception typeCondition

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft