Transaction.PromoteAndEnlistDurable Metoda

Definicja

Promuje i zaciąga trwałe menedżera zasobów, który obsługuje dwa zatwierdzenia fazy do udziału w transakcji.

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

Parametry

resourceManagerIdentifiermanager
Guid

Unikatowy identyfikator menedżera zasobów, który powinien być utrwalany w przypadku awarii lub ponownego uruchomienia usługi Resource Manager.

promotableNotification
IPromotableSinglePhaseNotification

Obiekt, który działa jako pełnomocnik zatwierdzenia dla transakcji nieprostrybucyjnej wewnętrznej do menedżera zasobów.

enlistmentNotificationnotification
ISinglePhaseNotification

Obiekt, który implementuje IEnlistmentNotification interfejs do odbierania powiadomień o zatwierdzeniu dwufazowym.

enlistmentOptionsoptions
EnlistmentOptions

EnlistDuringPrepareRequired jeśli menedżer zasobów chce wykonać dodatkową pracę w fazie przygotowania.

Zwraca

Enlistment

Dotyczy