Edit

Share via


RuntimeTransactionHandle.GetCurrentTransaction Method

Definition

Returns a reference to the current run-time transaction.

Overloads

GetCurrentTransaction(AsyncCodeActivityContext)

Returns a reference to the current run-time transaction.

GetCurrentTransaction(CodeActivityContext)

Returns a reference to the current run-time transaction.

GetCurrentTransaction(NativeActivityContext)

Returns a reference to the current run-time transaction.

GetCurrentTransaction(AsyncCodeActivityContext)

Returns a reference to the current run-time transaction.

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

Parameters

context
AsyncCodeActivityContext

The current execution environment.

Returns

The current transaction.

Applies to

GetCurrentTransaction(CodeActivityContext)

Returns a reference to the current run-time transaction.

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

Parameters

context
CodeActivityContext

The current execution environment.

Returns

The current transaction.

Applies to

GetCurrentTransaction(NativeActivityContext)

Returns a reference to the current run-time transaction.

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

Parameters

context
NativeActivityContext

The current execution environment.

Returns

The current run-time transaction.

Applies to