This documentation is archived and is not being maintained.

TransactionInterop.GetExportCookie Method

Transforms a transaction object into an export transaction cookie.

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

public static byte[] GetExportCookie(
	Transaction transaction,
	byte[] whereabouts


Type: System.Transactions.Transaction
The Transaction object to be marshaled.
Type: System.Byte[]
An address that describes the location of the destination transaction manager. This permits two transaction managers to communicate with one another and thereby propagate a transaction from one system to the other.

Return Value

Type: System.Byte[]
An export transaction cookie representing the specified Transaction object.

Call this method if you want to export a transaction. The transaction that is passed along is marshaled into a transaction cookie. You can then send the transaction cookie to the destination process. This is referred to as propagating the transaction between processes or systems. The propagation is considered to be a push model where the local transaction is pushed to the destination.  Therefore, information contained in whereabouts must describe the destination transaction manager. 

For more information on different propagation models, see the Remarks section of the TransactionInterop class.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.