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)

public Enlistment EnlistDurable (
	Guid resourceManagerIdentifier,
	IEnlistmentNotification enlistmentNotification,
	EnlistmentOptions enlistmentOptions
)
public Enlistment EnlistDurable (
	Guid resourceManagerIdentifier, 
	IEnlistmentNotification enlistmentNotification, 
	EnlistmentOptions enlistmentOptions
)
public function EnlistDurable (
	resourceManagerIdentifier : Guid, 
	enlistmentNotification : IEnlistmentNotification, 
	enlistmentOptions : EnlistmentOptions
) : Enlistment
Not applicable.

Parameters

resourceManagerIdentifier

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

enlistmentNotification

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

enlistmentOptions

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

Return Value

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 Single-Phase and Multi-Phase Transactions.

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft