Back to Devexpress

XPServerCollectionSource.Session Property

xpo-devexpress-dot-xpo-dot-xpservercollectionsource-3a9b89bf.md

latest2.1 KB
Original Source

XPServerCollectionSource.Session Property

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

Namespace : DevExpress.Xpo

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

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

Property Value

TypeDescription
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

ResolveSession

Session

XPServerCollectionSource Class

XPServerCollectionSource Members

DevExpress.Xpo Namespace