Skip to main content
A newer version of this page is available. .

XPServerCollectionSource.Session Property

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v18.2.dll

Declaration

[TypeConverter("DevExpress.Xpo.Design.SessionReferenceConverter, DevExpress.Xpo.v18.2.Design, Version=18.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
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 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