RuntimeTransactionHandle.GetCurrentTransaction 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回对当前运行时事务的引用。
重载
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
当前的执行环境。
返回
当前的运行时事务。