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.BeforeSave Event

Obsolete. Occurs before a persistent object is saved in storage.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[Obsolete("Use ObjectSaving event instead", true)]
[Browsable(false)]
public event ObjectManipulationEventHandler BeforeSave
<Obsolete("Use ObjectSaving event instead", True)>
<Browsable(False)>
Public Event BeforeSave As ObjectManipulationEventHandler
[Obsolete("Use ObjectSaving event instead", true)]
[Browsable(false)]
public event ObjectManipulationEventHandler BeforeSave
<Obsolete("Use ObjectSaving event instead", True)>
<Browsable(False)>
Public Event BeforeSave As ObjectManipulationEventHandler

Event Data

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

Property Description
Object Gets the object currently being processed.
Session Gets the session whose persistent object is currently being processed.

Remarks

The BeforeSave event is raised after the Session.Save method has been called. If a collection of persistent objects is saved, the BeforeSave event is raised for each persistent object in the collection. The event parameter's ObjectManipulationEventArgs.Object property identifies the persistent object currently being saved.

See Also