IPromotableSinglePhaseNotification.Rollback(SinglePhaseEnlistment) 方法

定义

通知登记的对象事务正在进行回滚。Notifies an enlisted object that the transaction is being rolled back.

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 对象。A SinglePhaseEnlistment object used to send a response to the transaction manager.

注解

收到此通知后,PSPE 应始终回滚它的内部事务,然后 Aborted 在参数上通过回调方法进行回复 singlePhaseEnlistmentOn receiving this notification, the PSPE should always rollback it's internal transaction and then reply with the Aborted callback method on the singlePhaseEnlistment parameter. 如果 PSPE 使用或答复 Committed InDoubtInvalidOperationException 则会从回调引发。If the PSPE replies with Committed or InDoubt, an InvalidOperationException is thrown from the callback.

适用于