Back to Devexpress

Session.BeforeRollbackTransaction Event

xpo-devexpress-dot-xpo-dot-session-2dcd6885.md

latest2.0 KB
Original Source

Session.BeforeRollbackTransaction Event

Occurs when a transaction is about to be completed via the ROLLBACK operation.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public event SessionManipulationEventHandler BeforeRollbackTransaction
vb
Public Event BeforeRollbackTransaction As SessionManipulationEventHandler

Event Data

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

PropertyDescription
SessionGets the session currently being processed.

Remarks

The ROLLBACK operation (Session.RollbackTransaction or ExplicitUnitOfWork.RollbackTransaction) discards all data modifications made since the start of the transaction and completes the transaction. As a result, the BeforeRollbackTransaction event is raised. The event parameter’s SessionManipulationEventArgs.Session property allows the current session to be identified.

After the transaction has been completed, via the ROLLBACK operation, the Session.AfterRollbackTransaction event is raised.

See Also

Session Class

Session Members

DevExpress.Xpo Namespace