Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

XpoDataSource.Session Property

Gets or sets the Session used by the current data source control to load and save persistent objects.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.1.dll

Declaration

[Browsable(false)]
public Session Session { get; set; }

Property Value

Type Description
Session

A Session object connected to a data store.

Remarks

A session which the data source control will work with can be assigned within a page’s Init event handler. For recommendations on how to create and assign sessions for the XpoDataSource data source controls, refer to Tutorial 6 - A Simple Guestbook (ASP.NET).

The following code snippets (auto-collected from DevExpress Examples) contain references to the Session property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also