Skip to main content
.NET Framework Class Library
Transaction..::.Clone Method

Creates a clone of the transaction.

Namespace: System.Transactions
Assembly: System.Transactions (in System.Transactions.dll)
Syntax
Public Function Clone As Transaction
public Transaction Clone()
public:
Transaction^ Clone()
member Clone : unit -> Transaction 

Return Value

Type: System.Transactions..::.Transaction
A Transaction that is a copy of the current transaction object.
Remarks

Clones are created to pass transactions. For example, you might not want to pass a CommittableTransaction to other applications, because you do not want others to commit your transaction. If you try to marshal or serialize a transaction, a clone is created for you automatically.

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

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.