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.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public ICollection GetObjects(
XPClassInfo classInfo,
CriteriaOperator criteria,
SortingCollection sorting,
int skipSelectedRecords,
int topSelectedRecords,
bool selectDeleted,
bool force
)
#Parameters
Name | Type | Description |
---|---|---|
class |
XPClass |
An XPClass |
criteria | Criteria |
A Criteria |
sorting | Sorting |
A Sorting |
skip |
Int32 | An integer value which specifies the number of objects to exclude when populating the collection. |
top |
Int32 | An integer value which specifies the maximum number of returned objects. |
select |
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. |
#Returns
Type | Description |
---|---|
ICollection | A collection of persistent objects that match the specified criteria. |
#Remarks
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>.