Transaction.Clone Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a clone of the transaction.

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

Public Function Clone As Transaction

Return Value

Type: System.Transactions.Transaction

A Transaction that is a copy of the current transaction object.

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.

.NET Framework
Available since 2.0
Return to top
Show: