Transaction.PromoteAndEnlistDurable Methode

Definition

Fördert und listet einen dauerhaften Ressourcenmanager auf, der zwei Phasen-Commit für die Teilnahme an einer Transaktion unterstützt.

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

Parameter

resourceManagerIdentifier
Guid

Ein eindeutiger Bezeichner für einen Ressourcen-Manager, der über Ressourcen-Manager-Fehler oder Neustart hinweg beibehalten werden soll.

promotableNotification
IPromotableSinglePhaseNotification

Ein Objekt, das als Commitdelegat für eine nicht verteilte Transaktion intern an einen Ressourcen-Manager fungiert.

enlistmentNotification
ISinglePhaseNotification

Ein Objekt, das die IEnlistmentNotification Schnittstelle zum Empfangen von zwei Phasen-Commitbenachrichtigungen implementiert.

enlistmentOptions
EnlistmentOptions

EnlistDuringPrepareRequired wenn der Ressourcenmanager während der Vorbereitungsphase zusätzliche Arbeit ausführen möchte.

Gibt zurück

Gilt für: