Skip to main content
.NET 8.0+

XPServerModeView.ResolveSession Event

Occurs when the XPServerModeView requests a Session to retrieve objects from the data store.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

public event ResolveSessionEventHandler ResolveSession

Event Data

The ResolveSession 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

The event is raised when the XPServerModeView requests a Session to retrieve objects from the data store, and the Session property is not specified.

You can handle this event when you create an XPServerModeView at design time and want to associate it with a Session or UnitOfWork created at runtime.

If the session is not specified, the XPServerModeView uses the default session (Session.DefaultSession).

Note

Do not change the XPServerModeView.Session property manually in code, as it is intended to provide design-time support for the component. A session that the view will work with can be initialized in the XPView‘s constructor or within the ResolveSession event handler.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResolveSession 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.

See Also