Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DependentTransaction Class

DependentTransaction Class

Describes a clone of a transaction providing guarantee that the transaction cannot be committed until the application comes to rest regarding work on the transaction. This class cannot be inherited.

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

[SerializableAttribute] 
public ref class DependentTransaction sealed : public Transaction
/** @attribute SerializableAttribute() */ 
public final class DependentTransaction extends Transaction
SerializableAttribute 
public final class DependentTransaction extends Transaction
Not applicable.

The DependentTransaction is a clone of a Transaction object created using the DependentClone method. Its sole purpose is to allow the application to come to rest and guarantee that the transaction cannot commit while work is still being performed on the transaction (for example, on a worker thread).

When the work done within the cloned transaction is finally complete and ready to be committed, it can inform the creator of the transaction using the Complete method. Thus you can preserve the consistency and correctness of data.

The DependentCloneOption enumeration is used to determine the behavior on commit. This behavior control allows an application to come to rest, as well as provides concurrency support. For more information on how this enumeration is used, see Manage Concurrency with DepedentTransaction.

The following example shows you how to create a dependent transaction.

No code example is currently available or this language may not be supported.

System.Object
   System.Transactions.Transaction
    System.Transactions.DependentTransaction

This type is thread safe.

Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft