Back to Devexpress

XPServerCollectionSource.ResolveSession Event

xpo-devexpress-dot-xpo-dot-xpservercollectionsource-1acbc1c0.md

latest2.1 KB
Original Source

XPServerCollectionSource.ResolveSession Event

Enables the XPServerCollectionSource to be associated with a session.

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public event ResolveSessionEventHandler ResolveSession
vb
Public Event ResolveSession As ResolveSessionEventHandler

Event Data

The ResolveSession event's data class is ResolveSessionEventArgs. The following properties provide information specific to this event:

PropertyDescription
SessionSpecifies the session to be used to load and save persistent objects.

Remarks

The ResolveSession event is raised when an XPServerCollectionSource object, whose XPBaseCollection.Session property isn’t specified, requests a Session. Handle this event to associate the data source with a session. This can be useful when you create an XPServerCollectionSource at design time and want to associate it with a session (unit of work) created at runtime.

If the session isn’t specified, the collection works with the default session (Session.DefaultSession).

See Also

Session

Session

XPServerCollectionSource Class

XPServerCollectionSource Members

DevExpress.Xpo Namespace