IPromotableSinglePhaseNotification.SinglePhaseCommit 方法

定义

通知登记的对象事务正在提交。

public:
 void SinglePhaseCommit(System::Transactions::SinglePhaseEnlistment ^ singlePhaseEnlistment);
public:
 void SinglePhaseCommit(System::Transactions::SinglePhaseEnlistment ^ enlistment);
public void SinglePhaseCommit (System.Transactions.SinglePhaseEnlistment singlePhaseEnlistment);
public void SinglePhaseCommit (System.Transactions.SinglePhaseEnlistment enlistment);
abstract member SinglePhaseCommit : System.Transactions.SinglePhaseEnlistment -> unit
abstract member SinglePhaseCommit : System.Transactions.SinglePhaseEnlistment -> unit
Public Sub SinglePhaseCommit (singlePhaseEnlistment As SinglePhaseEnlistment)
Public Sub SinglePhaseCommit (enlistment As SinglePhaseEnlistment)

参数

singlePhaseEnlistmentenlistment
SinglePhaseEnlistment

用于将响应发送到事务管理器的 SinglePhaseEnlistment 接口。

注解

此方法通知登记的对象要提交事务。

参数 singlePhaseEnlistment 包含回调,允许此接口的实现通知事务管理器事务的结果,因为事务管理器已委托对事务的控制。 对于提升的事务,事务管理器侦听事务结果并替代正在发送的响应。

收到此通知后,资源管理器应尝试提交其内部事务 (或分布式事务(如果已升级为) ),并根据提交事务的结果调用参数上的某个回调方法 singlePhaseEnlistment

适用于