SinglePhaseEnlistment.Aborted Method

Definition

Represents a callback that is used to indicate to the transaction manager that the transaction should be rolled back.

Overloads

Aborted()

Represents a callback that is used to indicate to the transaction manager that the transaction should be rolled back.

Aborted(Exception)

Represents a callback that is used to indicate to the transaction manager that the transaction should be rolled back, and provides an explanation.

Remarks

A transaction participant uses this method to notify the transaction manager that the transaction should be rolled back.

Aborted()

Source:
SinglePhaseEnlistment.cs
Source:
SinglePhaseEnlistment.cs
Source:
SinglePhaseEnlistment.cs

Represents a callback that is used to indicate to the transaction manager that the transaction should be rolled back.

C#
public void Aborted();

Remarks

A transaction participant implementing the ISinglePhaseNotification interface uses this method to notify the transaction manager that it cannot commit, and that the transaction should be rolled back.

Applies to

.NET 10 i inne wersje
Produkt Wersje
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Aborted(Exception)

Source:
SinglePhaseEnlistment.cs
Source:
SinglePhaseEnlistment.cs
Source:
SinglePhaseEnlistment.cs

Represents a callback that is used to indicate to the transaction manager that the transaction should be rolled back, and provides an explanation.

C#
public void Aborted(Exception? e);
C#
public void Aborted(Exception e);

Parameters

e
Exception

An explanation of why a rollback is initiated.

Applies to

.NET 10 i inne wersje
Produkt Wersje
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1