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

Session.GetObjects(XPClassInfo, CriteriaOperator, SortingCollection, Int32, Int32, Boolean, Boolean) Method

Gets a collection of persistent objects that match the specified criteria.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll


public ICollection GetObjects(
    XPClassInfo classInfo,
    CriteriaOperator criteria,
    SortingCollection sorting,
    int skipSelectedRecords,
    int topSelectedRecords,
    bool selectDeleted,
    bool force
Public Function GetObjects(
    classInfo As XPClassInfo,
    criteria As CriteriaOperator,
    sorting As SortingCollection,
    skipSelectedRecords As Integer,
    topSelectedRecords As Integer,
    selectDeleted As Boolean,
    force As Boolean
) As ICollection


Name Type Description
classInfo XPClassInfo

An XPClassInfo object that provides metadata information on the persistent objects to return.

criteria CriteriaOperator

A CriteriaOperator descendant which represents the search criteria.

sorting SortingCollection

A SortingCollection object which represents a collection of SortProperty objects.

skipSelectedRecords Int32

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

topSelectedRecords Int32

An integer value which specifies the maximum number of returned objects.

selectDeleted Boolean

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

force Boolean

true to reload the objects from a data store; otherwise, false.


Type Description

A collection of persistent objects that match the specified criteria.


This member supports the internal infrastructure and is not intended to be used directly from your code. To get objects from a session, use the XPCollection and XPView components or the XPQuery<T>.

See Also