Transaction.PromoteAndEnlistDurable Método

Definição

Promove e inscreve um gerenciador de recursos durável que dá suporte à confirmação de duas fases para participar de uma transação.

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

Parâmetros

resourceManagerIdentifiermanager
Guid

’Um identificador exclusivo de um gerenciador de recursos, que deve persistir durante uma falha ou reinicialização do gerenciador de recursos.

promotableNotification
IPromotableSinglePhaseNotification

Um objeto que atua como um delegado de confirmação de uma transação não distribuída interna de um gerenciador de recursos.

enlistmentNotificationnotification
ISinglePhaseNotification

Um objeto que implementa a interface IEnlistmentNotification para receber duas notificações de confirmação de fase.

enlistmentOptionsoptions
EnlistmentOptions

EnlistDuringPrepareRequired se o gerenciador de recursos desejar realizar trabalho adicional durante a fase de preparação.

Retornos

Enlistment

Aplica-se a