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.v24.1.dll
NuGet Packages: DevExpress.DataAccess, DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DismissSession event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.