IPromotableSinglePhaseNotification.Rollback(SinglePhaseEnlistment) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Notifica um objeto inscrito de que a transação está sendo revertida.
public:
void Rollback(System::Transactions::SinglePhaseEnlistment ^ singlePhaseEnlistment);
public void Rollback(System.Transactions.SinglePhaseEnlistment singlePhaseEnlistment);
abstract member Rollback : System.Transactions.SinglePhaseEnlistment -> unit
Public Sub Rollback (singlePhaseEnlistment As SinglePhaseEnlistment)
Parâmetros
- singlePhaseEnlistment
- SinglePhaseEnlistment
Um SinglePhaseEnlistment objeto usado para enviar uma resposta ao gerenciador de transações.
Comentários
Ao receber essa notificação, o PSPE sempre deve reverter sua transação interna e responder com o Aborted método de retorno de chamada no singlePhaseEnlistment parâmetro. Se o PSPE responder com Committed ou InDoubt, um InvalidOperationException será gerado do retorno de chamada.