The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
All docs
V19.2
19.2
19.1
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPServerModeView.ResolveSession Event

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public event ResolveSessionEventHandler ResolveSession
Public Event ResolveSession As ResolveSessionEventHandler
public event ResolveSessionEventHandler ResolveSession
Public Event ResolveSession As ResolveSessionEventHandler

Event Data

The ResolveSession event handler receives an argument of the ResolveSessionEventArgs type. 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.

See Also