Back to Devexpress

Session.FailedFlushChanges Event

xpo-devexpress-dot-xpo-dot-session-f0086528.md

latest1.8 KB
Original Source

Session.FailedFlushChanges Event

Occurs when the Flush Changes operation fails due to database constraints or other circumstances.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public event SessionOperationFailEventHandler FailedFlushChanges
vb
Public Event FailedFlushChanges As SessionOperationFailEventHandler

Event Data

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

PropertyDescription
ExceptionGets the exception thrown by a database when committing a transaction or changes made to persistent objects.
HandledSpecifies whether the default processing of an exception is prohibited.

Remarks

This event occurs, for instance, when an exception is thrown when performing the Flush Changes operation (Session.FlushChanges or Session.FlushChangesAsync). The Exception parameter allows you to identify the current exception. To respond to the exception, use the Handled parameter.

See Also

Session Class

Session Members

DevExpress.Xpo Namespace