Langage

Transaction.PromoteAndEnlistDurable Méthode

Définition

Promeut et inscrit un gestionnaire de ressources durable qui prend en charge la validation en deux phases pour participer à une transaction.

public:
 System::Transactions::Enlistment ^ PromoteAndEnlistDurable(Guid resourceManagerIdentifier, System::Transactions::IPromotableSinglePhaseNotification ^ promotableNotification, System::Transactions::ISinglePhaseNotification ^ enlistmentNotification, System::Transactions::EnlistmentOptions enlistmentOptions);
public System.Transactions.Enlistment PromoteAndEnlistDurable(Guid resourceManagerIdentifier, System.Transactions.IPromotableSinglePhaseNotification promotableNotification, System.Transactions.ISinglePhaseNotification enlistmentNotification, System.Transactions.EnlistmentOptions enlistmentOptions);
member this.PromoteAndEnlistDurable : Guid * System.Transactions.IPromotableSinglePhaseNotification * System.Transactions.ISinglePhaseNotification * System.Transactions.EnlistmentOptions -> System.Transactions.Enlistment
Public Function PromoteAndEnlistDurable (resourceManagerIdentifier As Guid, promotableNotification As IPromotableSinglePhaseNotification, enlistmentNotification As ISinglePhaseNotification, enlistmentOptions As EnlistmentOptions) As Enlistment

Paramètres

resourceManagerIdentifier
Guid

Identificateur unique d’un gestionnaire de ressources, qui doit conserver l’échec ou le redémarrage d’un gestionnaire de ressources.

promotableNotification
IPromotableSinglePhaseNotification

Objet qui agit en tant que délégué de validation pour une transaction non distribuée interne à un gestionnaire de ressources.

enlistmentNotification
ISinglePhaseNotification

Objet qui implémente l’interface IEnlistmentNotification pour recevoir des notifications de validation en deux phases.

enlistmentOptions
EnlistmentOptions

EnlistDuringPrepareRequired si le gestionnaire de ressources souhaite effectuer des tâches supplémentaires pendant la phase de préparation.

Retours

S’applique à