TransactionInterop.GetDtcTransaction(Transaction) 方法

定義

取得表示 TransactionIDtcTransaction 執行個體。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

參數

transaction
Transaction

要封送處理的 Transaction 執行個體。A Transaction instance to be marshaled.

傳回

IDtcTransaction

表示 IDtcTransactionTransaction 執行個體。An IDtcTransaction instance that represents a Transaction. IDtcTransaction 執行個體相容於 MSDTC 所使用之 Unmanaged 形式的 ITransaction,以及 System.EnterpriseServices 使用之 Managed 形式的 ITransactionThe IDtcTransaction instance is compatible with the unmanaged form of ITransaction used by MSDTC and with the Managed form of ITransaction used by System.EnterpriseServices.

適用於