Transaction::EnlistVolatile Method (IEnlistmentNotification, EnlistmentOptions)
Enlists a volatile resource manager that supports two phase commit to participate in a transaction.
Assembly: System.Transactions (in System.Transactions.dll)
public: Enlistment^ EnlistVolatile( IEnlistmentNotification^ enlistmentNotification, EnlistmentOptions enlistmentOptions )
- Type: System.Transactions::IEnlistmentNotification
An object that implements the IEnlistmentNotification interface to receive two phase commit notifications.
Volatile resource managers cannot recovery from failure to complete a transaction in which they were participating. To obtain a durable enlistment in a transaction, use the EnlistDurable method. 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, 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.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.