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

Session.SelectData(XPClassInfo, CriteriaOperatorCollection, CriteriaOperator, Boolean, Int32, Int32, SortingCollection) Method

Retrieves objects from a session using the specified query parameters.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll


public List<object[]> SelectData(
    XPClassInfo classInfo,
    CriteriaOperatorCollection properties,
    CriteriaOperator criteria,
    bool selectDeleted,
    int skipSelectedRecords,
    int topSelectedRecords,
    SortingCollection sorting
Public Function SelectData(
    classInfo As XPClassInfo,
    properties As CriteriaOperatorCollection,
    criteria As CriteriaOperator,
    selectDeleted As Boolean,
    skipSelectedRecords As Integer,
    topSelectedRecords As Integer,
    sorting As SortingCollection
) As List(Of Object())


Name Type Description
classInfo XPClassInfo

An XPClassInfo object which provides the metadata information for the objects to be retrieved.

properties CriteriaOperatorCollection

A CriteriaOperatorCollection object which specifies object properties to be retrieved.

criteria CriteriaOperator

A CriteriaOperator descendant which specifies the objects to be retrieved.

selectDeleted Boolean

true to include the persistent objects marked as deleted into the list; otherwise, false.

skipSelectedRecords Int32

An integer value which specifies the number of objects to exclude when populating the list.

topSelectedRecords Int32

An integer value which specifies the maximum number of objects to be retrieved.

sorting SortingCollection

A SortingCollection object that specifies the sort order for the list of retrieved objects.


Type Description

A list whose elements are property values that correspond to the properties of objects retrieved from the session.


This method is intended for internal use. To get objects from a session, use the XPCollection and XPView components or the XPQuery<T>.

See Also