Back to Devexpress

Session.AfterRollbackTransaction Event

xpo-devexpress-dot-xpo-dot-session-32d55a30.md

latest3.1 KB
Original Source

Session.AfterRollbackTransaction Event

Occurs after a transaction has been completed via the ROLLBACK operation.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public event SessionManipulationEventHandler AfterRollbackTransaction
vb
Public Event AfterRollbackTransaction As SessionManipulationEventHandler

Event Data

The AfterRollbackTransaction event's data class is SessionManipulationEventArgs. The following properties provide information specific to this event:

PropertyDescription
SessionGets the session currently being processed.

Remarks

The AfterRollbackTransaction event is raised after a transaction has been completed via the ROLLBACK operation (Session.RollbackTransaction or ExplicitUnitOfWork.RollbackTransaction). The event parameter’s SessionManipulationEventArgs.Session property allows the processed session to be identified.

When a transaction is about to be completed via the ROLLBACK operation, the Session.BeforeRollbackTransaction event is raised.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AfterRollbackTransaction event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XAF_generate-a-sequential-number-for-a-persistent-object-within-a-database-transaction/CS/XPO/SequenceGenerator/SequenceGenerator.Module/SequenceClasses/UserFriendlyIdPersistentObject.cs#L86

csharp
Session.AfterCommitTransaction += Session_AfterCommitTransaction;
Session.AfterRollbackTransaction += Session_AfterRollBack;
Session.FailedCommitTransaction += Session_FailedCommitTransaction;

See Also

Session Class

Session Members

DevExpress.Xpo Namespace