Bagikan melalui


RuntimeTransactionHandle.GetCurrentTransaction Metode

Definisi

Mengembalikan referensi ke transaksi run-time saat ini.

Overload

GetCurrentTransaction(AsyncCodeActivityContext)

Mengembalikan referensi ke transaksi run-time saat ini.

GetCurrentTransaction(CodeActivityContext)

Mengembalikan referensi ke transaksi run-time saat ini.

GetCurrentTransaction(NativeActivityContext)

Mengembalikan referensi ke transaksi run-time saat ini.

GetCurrentTransaction(AsyncCodeActivityContext)

Mengembalikan referensi ke transaksi run-time saat ini.

public:
 System::Transactions::Transaction ^ GetCurrentTransaction(System::Activities::AsyncCodeActivityContext ^ context);
public System.Transactions.Transaction GetCurrentTransaction (System.Activities.AsyncCodeActivityContext context);
member this.GetCurrentTransaction : System.Activities.AsyncCodeActivityContext -> System.Transactions.Transaction
Public Function GetCurrentTransaction (context As AsyncCodeActivityContext) As Transaction

Parameter

context
AsyncCodeActivityContext

Lingkungan eksekusi saat ini.

Mengembalikan

Transaksi saat ini.

Berlaku untuk

GetCurrentTransaction(CodeActivityContext)

Mengembalikan referensi ke transaksi run-time saat ini.

public:
 System::Transactions::Transaction ^ GetCurrentTransaction(System::Activities::CodeActivityContext ^ context);
public System.Transactions.Transaction GetCurrentTransaction (System.Activities.CodeActivityContext context);
member this.GetCurrentTransaction : System.Activities.CodeActivityContext -> System.Transactions.Transaction
Public Function GetCurrentTransaction (context As CodeActivityContext) As Transaction

Parameter

context
CodeActivityContext

Lingkungan eksekusi saat ini.

Mengembalikan

Transaksi saat ini.

Berlaku untuk

GetCurrentTransaction(NativeActivityContext)

Mengembalikan referensi ke transaksi run-time saat ini.

public:
 System::Transactions::Transaction ^ GetCurrentTransaction(System::Activities::NativeActivityContext ^ context);
public System.Transactions.Transaction GetCurrentTransaction (System.Activities.NativeActivityContext context);
member this.GetCurrentTransaction : System.Activities.NativeActivityContext -> System.Transactions.Transaction
Public Function GetCurrentTransaction (context As NativeActivityContext) As Transaction

Parameter

context
NativeActivityContext

Lingkungan eksekusi saat ini.

Mengembalikan

Transaksi run-time saat ini.

Berlaku untuk