Export (0) Print
Expand All

Transaction.EnlistDurable Method (Guid, IEnlistmentNotification, EnlistmentOptions)

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 Enlistment EnlistDurable(
	Guid resourceManagerIdentifier,
	IEnlistmentNotification enlistmentNotification,
	EnlistmentOptions enlistmentOptions
)

Parameters

resourceManagerIdentifier
Type: System.Guid
A unique identifier for a resource manager, which should persist across resource manager failure or reboot.
enlistmentNotification
Type: System.Transactions.IEnlistmentNotification
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.

Return Value

Type: System.Transactions.Enlistment
An Enlistment object that describes the enlistment.

Resource managers with a durable enlistment must be able to perform recovery if they experience a failure. For more information on recovery, see Performing Recovery. For more information on volatile and durable resources, as well as how to enlist a resource, see Implementing A Resource Manager. For more information on how a resource manager responds to commit notification and prepare the commit in two-phase commit, see Committing A Transaction In Single-Phase and Multi-Phase.

Resource managers enlisted for participation in a transaction through this method receive two phase commit notifications that correspond to the methods defined on the IEnlistmentNotification interface.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft