IPromotableSinglePhaseNotification.Rollback(SinglePhaseEnlistment) 方法

定义

通知登记的对象事务正在进行回滚。

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

参数

singlePhaseEnlistmentenlistment
SinglePhaseEnlistment

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

注解

收到此通知时,PSPE 应始终回滚其内部事务,然后使用参数上的singlePhaseEnlistment回调方法进行回复Aborted。 如果 PSPE 使用或InDoubt回叫回复Committed,则会从回调引发一个InvalidOperationException

适用于