This documentation is archived and is not being maintained.

DependentCloneOption Enumeration

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

Controls what kind of dependent transaction to create.

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

public enum class DependentCloneOption
public enum DependentCloneOption
public enum DependentCloneOption

 Member nameDescription
BlockCommitUntilCompleteThe dependent transaction blocks the commit process of the transaction until the parent transaction times out, or Complete is called. In this case, additional work can be done on the transaction and new enlistments can be created. 
RollbackIfNotCompleteThe dependent transaction automatically aborts the transaction if Commit is called on the parent transaction before Complete is called. 

A dependent transaction can be obtained using the DependentClone method, with the DependentCloneOption parameter controlling what kind of dependent transaction to create. For more information on how this enumeration is used, see Managing Concurrency with DependentTransaction.

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

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

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
Show: