Transaction.PromoteAndEnlistDurable(Guid, IPromotableSinglePhaseNotification, ISinglePhaseNotification, EnlistmentOptions) Metodo

Definizione

Promuove e inserisce una gestione risorse duratura che supporta il commit a due fasi per la partecipazione a una transazione.Promotes and enlists a durable resource manager that supports two phase commit to participate in a 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 manager, System::Transactions::IPromotableSinglePhaseNotification ^ promotableNotification, System::Transactions::ISinglePhaseNotification ^ notification, System::Transactions::EnlistmentOptions options);
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 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
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
Public Function PromoteAndEnlistDurable (manager As Guid, promotableNotification As IPromotableSinglePhaseNotification, notification As ISinglePhaseNotification, options As EnlistmentOptions) As Enlistment

Parametri

resourceManagerIdentifiermanager
Guid

Identificatore univoco di un gestore delle risorse, che deve essere mantenuto dopo un riavvio o un errore del gestore delle risorse.A unique identifier for a resource manager, which should persist across resource manager failure or reboot.

promotableNotification
IPromotableSinglePhaseNotification

Un oggetto che svolge la funzione di delegato di commit per una transazione non distribuita interna a una gestione risorse.An object that acts as a commit delegate for a non-distributed transaction internal to a resource manager.

enlistmentNotificationnotification
ISinglePhaseNotification

Oggetto che implementa l'interfaccia IEnlistmentNotification per ricevere le notifiche di commit a due fasi.An object that implements the IEnlistmentNotification interface to receive two phase commit notifications.

enlistmentOptionsoptions
EnlistmentOptions

EnlistDuringPrepareRequired se il gestore di risorse vuole eseguire altre operazioni durante la fase di preparazione.EnlistDuringPrepareRequired if the resource manager wants to perform additional work during the prepare phase.

Restituisce

Enlistment

Si applica a