Skip to main content
.NET Framework 4.5.2+

XPServerCollectionSource.Session Property

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public Session Session { get; set; }

Property Value

Type Description
Session

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

Remarks

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 UnitOfWork. 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.

See Also