Transaction.PromoteAndEnlistDurable Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Promuove ed integra un gestore risorse durevole che supporta il commit in due fasi per partecipare a una transazione.
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
Parametri
- resourceManagerIdentifier
- Guid
Identificatore univoco per un resource manager, che deve essere persistente in caso di errore o riavvio di Resource Manager.
- promotableNotification
- IPromotableSinglePhaseNotification
Oggetto che funge da delegato di commit per una transazione non distribuita interna a un gestore risorse.
- enlistmentNotification
- ISinglePhaseNotification
Oggetto che implementa l'interfaccia IEnlistmentNotification per ricevere notifiche di commit in due fasi.
- enlistmentOptions
- EnlistmentOptions
EnlistDuringPrepareRequired se resource manager vuole eseguire operazioni aggiuntive durante la fase di preparazione.