Transaction.PromoteAndEnlistDurable Method (Guid, IPromotableSinglePhaseNotification, ISinglePhaseNotification, EnlistmentOptions)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

[Supported in the .NET Framework 4.5.2 and later versions]

Promotes and enlists a durable resource manager that supports two phase commit to participate in a transaction.

Namespace:   System.Transactions
Assembly:  System.Transactions (in System.Transactions.dll)

<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")>
Public Function PromoteAndEnlistDurable (
	resourceManagerIdentifier As Guid,
	promotableNotification As IPromotableSinglePhaseNotification,
	enlistmentNotification As ISinglePhaseNotification,
	enlistmentOptions As EnlistmentOptions
) As Enlistment

Parameters

resourceManagerIdentifier
Type: System.Guid

A unique identifier for a resource manager, which should persist across resource manager failure or reboot.

promotableNotification
Type: System.Transactions.IPromotableSinglePhaseNotification

An object that acts as a commit delegate for a non-distributed transaction internal to a resource manager.

enlistmentNotification
Type: System.Transactions.ISinglePhaseNotification

An object that implements the IEnlistmentNotification interface to receive two phase commit notifications.

enlistmentOptions
Type: System.Transactions.EnlistmentOptions

EnlistDuringPrepareRequired if the resource manager wants to perform additional work during the prepare phase.

.NET Framework
Available since 4.5.2
Return to top
Show: