HostCurrentTransactionCallback 委托

定义

为宿主环境提供其自己的默认概念 Current的机制。

public delegate System::Transactions::Transaction ^ HostCurrentTransactionCallback();
public delegate System.Transactions.Transaction? HostCurrentTransactionCallback();
public delegate System.Transactions.Transaction HostCurrentTransactionCallback();
type HostCurrentTransactionCallback = delegate of unit -> Transaction
Public Delegate Function HostCurrentTransactionCallback() As Transaction 

返回值

Transaction 对象。

注解

此委托为宿主环境提供其自己的默认概念 Current的机制。 在何时Currentnull调用,并且没有指示环境事务可能已被禁止的当前TransactionScope状态。

扩展方法

名称 说明
GetMethodInfo(Delegate)

获取一个对象,该对象表示由指定委托表示的方法。

适用于