Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Transaction::PromoteAndEnlistDurable Method

[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 = L"FullTrust")]
Enlistment^ PromoteAndEnlistDurable(
	Guid resourceManagerIdentifier, 
	IPromotableSinglePhaseNotification^ promotableNotification, 
	ISinglePhaseNotification^ enlistmentNotification, 
	EnlistmentOptions enlistmentOptions


Type: System::Guid

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

Type: System.Transactions::IPromotableSinglePhaseNotification

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

Type: System.Transactions::ISinglePhaseNotification

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

Type: System.Transactions::EnlistmentOptions

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

.NET Framework

Supported in: 4.6, 4.5.2
© 2015 Microsoft