.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

XPServerCollectionSource.Session Property

Gets or sets the Session used by the current XPServerCollectionSource object.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll


public Session Session { get; set; }
Public Property Session As Session

Property Value

Type Description

The session with a connection to a data source. The default value is Session.DefaultSession.


By default, the XPServerCollectionSource object operates within the scope of the Default Session (Session.DefaultSession). At design time, you can use the Session property to assign the XPServerCollectionSource object to another session or unit of work. At runtime, use the XPServerCollectionSource constructor to initialize the Session property. It's also possible to associate an XPServerCollectionSource object with a session via the XPServerCollectionSource.ResolveSession event.

For information on sessions and units of work, please refer to the Session section.

See Also