Redigera

Dela via


TransactionInterop.GetDtcTransaction(Transaction) Method

Definition

Gets an IDtcTransaction instance that represents a Transaction.

public:
 static System::Transactions::IDtcTransaction ^ GetDtcTransaction(System::Transactions::Transaction ^ transaction);
public static System.Transactions.IDtcTransaction GetDtcTransaction (System.Transactions.Transaction transaction);
static member GetDtcTransaction : System.Transactions.Transaction -> System.Transactions.IDtcTransaction
Public Shared Function GetDtcTransaction (transaction As Transaction) As IDtcTransaction

Parameters

transaction
Transaction

A Transaction instance to be marshaled.

Returns

An IDtcTransaction instance that represents a Transaction. The IDtcTransaction instance is compatible with the unmanaged form of ITransaction used by MSDTC and with the Managed form of ITransaction used by System.EnterpriseServices.

Applies to