RuntimeTransactionHandle.GetCurrentTransaction 方法

定义

返回对当前运行时事务的引用。

重载

GetCurrentTransaction(AsyncCodeActivityContext)

返回对当前运行时事务的引用。

GetCurrentTransaction(CodeActivityContext)

返回对当前运行时事务的引用。

GetCurrentTransaction(NativeActivityContext)

返回对当前运行时事务的引用。

GetCurrentTransaction(AsyncCodeActivityContext)

返回对当前运行时事务的引用。

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

参数

context
AsyncCodeActivityContext

当前的执行环境。

返回

当前事务。

适用于

GetCurrentTransaction(CodeActivityContext)

返回对当前运行时事务的引用。

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

参数

context
CodeActivityContext

当前的执行环境。

返回

当前事务。

适用于

GetCurrentTransaction(NativeActivityContext)

返回对当前运行时事务的引用。

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

参数

context
NativeActivityContext

当前的执行环境。

返回

当前的运行时事务。

适用于