Język

Transaction.PromoteAndEnlistDurable Metoda

Definicja

Promuje i enlists trwałe menedżera zasobów, który obsługuje dwa zatwierdzenia fazy, aby wziąć udział 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 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

Parametry

resourceManagerIdentifier
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 dla menedżera zasobów.

enlistmentNotification
ISinglePhaseNotification

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

enlistmentOptions
EnlistmentOptions

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

Zwraca

Dotyczy