Transaction.PromoteAndEnlistDurable(Guid, IPromotableSinglePhaseNotification, ISinglePhaseNotification, EnlistmentOptions) Méthode
Définition
Favorise et inscrit un gestionnaire de ressources durable qui prend en charge la validation à deux phases pour participer à une transaction.Promotes and enlists a durable resource manager that supports two phase commit to participate in a transaction.
public:
System::Transactions::Enlistment ^ PromoteAndEnlistDurable(Guid manager, System::Transactions::IPromotableSinglePhaseNotification ^ promotableNotification, System::Transactions::ISinglePhaseNotification ^ notification, System::Transactions::EnlistmentOptions options);
public System.Transactions.Enlistment PromoteAndEnlistDurable (Guid manager, System.Transactions.IPromotableSinglePhaseNotification promotableNotification, System.Transactions.ISinglePhaseNotification notification, System.Transactions.EnlistmentOptions options);
member this.PromoteAndEnlistDurable : Guid * System.Transactions.IPromotableSinglePhaseNotification * System.Transactions.ISinglePhaseNotification * System.Transactions.EnlistmentOptions -> System.Transactions.Enlistment
Public Function PromoteAndEnlistDurable (manager As Guid, promotableNotification As IPromotableSinglePhaseNotification, notification As ISinglePhaseNotification, options As EnlistmentOptions) As Enlistment
Paramètres
- resourceManagerIdentifier
- Guid
Identificateur unique pour un gestionnaire de ressources qui doit persister pendant une défaillance du gestionnaire de ressources ou un redémarrage.A unique identifier for a resource manager, which should persist across resource manager failure or reboot.
- promotableNotification
- IPromotableSinglePhaseNotification
Objet qui sert de délégué de validation pour une transaction non distribuée interne à un gestionnaire de ressources.An object that acts as a commit delegate for a non-distributed transaction internal to a resource manager.
- enlistmentNotification
- ISinglePhaseNotification
Objet qui implémente l'interface IEnlistmentNotification pour recevoir des notifications de validation à deux phases.An object that implements the IEnlistmentNotification interface to receive two phase commit notifications.
- enlistmentOptions
- EnlistmentOptions
EnlistDuringPrepareRequired si le gestionnaire de ressources souhaite exécuter un travail supplémentaire pendant la phase de préparation.EnlistDuringPrepareRequired if the resource manager wants to perform additional work during the prepare phase.