NonPersistentObjectSpace.ObjectsCountGetting Event

Occurs when the NonPersistentObjectSpace.GetObjectsCount method is called.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.1.dll

Syntax

public event EventHandler<ObjectsCountGettingEventArgs> ObjectsCountGetting

The event handler receives an argument of the ObjectsCountGettingEventArgs type. The ObjectsCountGettingEventArgs properties provide information specific to this event.

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.