Reenlists a durable participant in a transaction.
Assembly: System.Transactions (in System.Transactions.dll)
'Declaration <PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _ Public Shared Function Reenlist ( _ resourceManagerIdentifier As Guid, _ recoveryInformation As Byte(), _ enlistmentNotification As IEnlistmentNotification _ ) As Enlistment
- Type: System.Byte()
Contains additional information of recovery information.
recoveryInformation is invalid.
Transaction Manager information in recoveryInformation does not match the configured transaction manager.
RecoveryInformation is not recognized by System.Transactions.
RecoveryComplete has already been called for the specified resourceManagerIdentifier. The reenlistment is rejected.
The resourceManagerIdentifier does not match the content of the specified recovery information in recoveryInformation.
A resource manager facilitates resolution of durable enlistments in a transaction by reenlisting the transaction participant after resource failure.
The resourceManagerIdentifier parameter is used to consistently label the participant of a transaction in the event of a resource failure. When calling the method, the resource manager must provide the same resourceManagerIdentifier as it used when it originally called the EnlistDurable method during enlistment, or a TransactionException is thrown.
When a participant is reenlisted using this method, the phase 2 methods of IEnlistmentNotification that correspond to the transaction's outcome (that is, Commit , Rollback or InDoubt ) are called as appropriate.
After the participants are successfully reenlisted, you should then call RecoveryComplete to complete the recovery.
You should only call this method when a resource manager restarts from failure. In addition, you should only reenlist unresolved transactions logged by a resource manager during the initial Prepare phase of a two-phase commit. Any attempt to call this method at invalid times can produce erroneous results.
If the transaction manager fails, and your resource manager performs recovery only a short time after you called the Prepared method on an enlistment in phase 1 of the Two-Phase Commit protocol, your resource manager might either receive the InDoubt or Rollback callback.
For more information on recovery, see Performing Recovery.
Note This method uses LinkDemand to prevent it from being called from untrusted code; however, only the immediate caller is required to possess the FullTrust permission set.
Windows 8.1, Windows Server 2012 R2, 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.