.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPBaseCollection.Session Property

Gets or sets the Session used by the current collection.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll


public Session Session { get; set; }

Property Value

Type Description

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


Do not change this property value manually in your code, as it is intended to provide design-time support for the component. If you need to create the XPColleciton in the designer but specify the Session in code, use the XPBaseCollection.ResolveSession event. In the XPBaseCollection descendants (XPCollection and XPCollection<T>), you can also pass the Session object to the constructor.

See Also