Skip to main content
.NET Framework 4.5.2+

BaseObjectSpace.GetObjectsCount(Type, CriteriaOperator) Method

Returns the number of objects specified.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.1.dll

NuGet Package: DevExpress.ExpressApp


public virtual int GetObjectsCount(
    Type objectType,
    CriteriaOperator criteria


Name Type Description
objectType Type

A Type object that identifies the type of objects against which the calculation will be performed.

criteria CriteriaOperator

The CriteriaOperator that specifies the criteria for object selection in the database.


Type Description

An integer value that is the count of persistent objects that satisfy the specified criteria.


This method is intended to calculate the number of persistent objects in the database. For instance, this method is used before retrieving objects for the Lookup Property Editor. If there are more than the specified value, the Find editor is available.

See Also