Transaction.PromoteAndEnlistDurable 方法

定义

提升和登记支持两阶段提交的持久资源管理器以参与事务。

public:
 System::Transactions::Enlistment ^ PromoteAndEnlistDurable(Guid resourceManagerIdentifier, System::Transactions::IPromotableSinglePhaseNotification ^ promotableNotification, System::Transactions::ISinglePhaseNotification ^ enlistmentNotification, System::Transactions::EnlistmentOptions enlistmentOptions);
public System.Transactions.Enlistment PromoteAndEnlistDurable (Guid resourceManagerIdentifier, System.Transactions.IPromotableSinglePhaseNotification promotableNotification, System.Transactions.ISinglePhaseNotification enlistmentNotification, System.Transactions.EnlistmentOptions enlistmentOptions);
member this.PromoteAndEnlistDurable : Guid * System.Transactions.IPromotableSinglePhaseNotification * System.Transactions.ISinglePhaseNotification * System.Transactions.EnlistmentOptions -> System.Transactions.Enlistment
Public Function PromoteAndEnlistDurable (resourceManagerIdentifier As Guid, promotableNotification As IPromotableSinglePhaseNotification, enlistmentNotification As ISinglePhaseNotification, enlistmentOptions As EnlistmentOptions) As Enlistment

参数

resourceManagerIdentifier
Guid

资源管理器的唯一标识符,它应该在资源管理器失败或重新启动的过程中持久保留。

promotableNotification
IPromotableSinglePhaseNotification

一个用作资源管理器内部非分布式事务的提交委托的对象。

enlistmentNotification
ISinglePhaseNotification

实现 IEnlistmentNotification 接口以接收两阶段提交通知的对象。

enlistmentOptions
EnlistmentOptions

如果资源管理器在准备阶段想要执行额外工作,则为 EnlistDuringPrepareRequired

返回

适用于