Transaction.PromoteAndEnlistDurable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Promotes and enlists a durable resource manager that supports two phase commit to participate in a transaction.
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
Parameters
- resourceManagerIdentifier
- Guid
A unique identifier for a resource manager, which should persist across resource manager failure or reboot.
- promotableNotification
- IPromotableSinglePhaseNotification
An object that acts as a commit delegate for a non-distributed transaction internal to a resource manager.
- enlistmentNotification
- ISinglePhaseNotification
An object that implements the IEnlistmentNotification interface to receive two phase commit notifications.
- enlistmentOptions
- EnlistmentOptions
EnlistDuringPrepareRequired if the resource manager wants to perform additional work during the prepare phase.