XPObjectSource.DismissSession Event
Occurs when the XPObjectSource no longer needs the Session it used to retrieve objects from the data store.
Namespace: DevExpress.Xpo
Assembly: DevExpress.DataAccess.v26.1.dll
NuGet Package: DevExpress.DataAccess
Declaration
Event Data
The DismissSession event's data class is ResolveSessionEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Session | Specifies the session to be used to load and save persistent objects. |
Remarks
Handle this event to dispose of the Session manually created in the XPObjectSource.ResolveSession event handler. You can also access the object you have assigned to the XPObjectSource.Tag field in the XPObjectSource.ResolveSession event handler. If you did not handle the ResolveSession event, there is generally no need to handle the DismissSession event.