Transaction.PromoteAndEnlistDurable Metoda

Definice

Propaguje a zařadí trvalý správce prostředků, který podporuje dvoufázové potvrzení k účasti v transakci.

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

Jedinečný identifikátor správce prostředků, který by měl přetrvávat i po selhání nebo restartování Správce prostředků.

promotableNotification
IPromotableSinglePhaseNotification

Objekt, který funguje jako potvrzení delegát pro nedistribuovanou transakci interní správce prostředků.

enlistmentNotification
ISinglePhaseNotification

Objekt, který implementuje IEnlistmentNotification rozhraní pro příjem dvoufázových oznámení potvrzení.

enlistmentOptions
EnlistmentOptions

EnlistDuringPrepareRequired pokud chce správce zdrojů provést další práci během fáze přípravy.

Návraty

Platí pro