Transaction.PromoteAndEnlistDurable Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Promove e recruta um gestor de recursos duradouro que suporta compromissos em duas fases para participar numa 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 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
Parâmetros
- resourceManagerIdentifier
- Guid
Um identificador único para um gestor de recursos, que deve persistir através de falhas ou reinício do gestor de recursos.
- promotableNotification
- IPromotableSinglePhaseNotification
Um objeto que atua como delegado de commit para uma transação não distribuída interna a um gestor de recursos.
- enlistmentNotification
- ISinglePhaseNotification
Um objeto que implementa a IEnlistmentNotification interface para receber notificações de commit em duas fases.
- enlistmentOptions
- EnlistmentOptions
EnlistDuringPrepareRequired Se o gestor de recursos quiser realizar trabalho adicional durante a fase de preparação.