TransactionInterop.GetExportCookie Method

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

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
)
public static byte[] GetExportCookie (
	Transaction transaction, 
	byte[] whereabouts
)
public static function GetExportCookie (
	transaction : Transaction, 
	whereabouts : byte[]
) : byte[]

Parameters

transaction

The Transaction object to be marshaled.

whereabouts

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

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.

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

Community Additions

ADD
Show: