NonPersistentObjectSpace.ObjectsCountGetting Event

Occurs when the NonPersistentObjectSpace.GetObjectsCount method is called.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll


public event EventHandler<ObjectsCountGettingEventArgs> ObjectsCountGetting
Public Event ObjectsCountGetting As EventHandler(Of ObjectsCountGettingEventArgs)

The event handler receives an argument of the ObjectsCountGettingEventArgs type.

Property Description

Specifies the count of non-persistent objects that satisfy the specified criteria.


Gets the criteria for object selection.


Gets the type of objects against which the calculation will be performed.

Handle the ObjectsCountGetting event and pass a custom count value to the ObjectsCountGettingEventArgs.Count parameter. If ObjectsCountGetting is not handled or if Count is set to null, the GetObjectsCount method calls the IObjectSpace.CreateCollection method to calculate the count.

See Also