The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

XPServerCollectionSource.Session Property

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

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[TypeConverter("DevExpress.Xpo.Design.SessionReferenceConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")]
public Session Session { get; set; }
<TypeConverter("DevExpress.Xpo.Design.SessionReferenceConverter, DevExpress.Xpo.v19.2.Design, Version=19.2.99.0, Culture=neutral, PublicKeyToken=c38a27d2243c2672")>
Public Property Session As Session
public Session Session { get; set; }
Public Property Session As Session

Property Value

Type Description
Session

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

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