The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.BeforeRollbackTransaction Event

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public event SessionManipulationEventHandler BeforeRollbackTransaction
Public Event BeforeRollbackTransaction As SessionManipulationEventHandler
public event SessionManipulationEventHandler BeforeRollbackTransaction
Public Event BeforeRollbackTransaction As SessionManipulationEventHandler

Event Data

The BeforeRollbackTransaction event handler receives an argument of the SessionManipulationEventArgs type. The following properties provide information specific to this event.

Property Description
Session Gets 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