Aggregate Enum

Enumerates aggregate functions.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v21.2.dll


public enum Aggregate


Name Description

Determines whether the object exists in the collection.


Returns the number of objects in the collection.


Returns the maximum expression value in the collection.


Returns the minimum expression value in the collection.


Evaluates the average of the values in the collection.


Returns the sum of all the expression values in the collection.


Returns a single object from the collection. The collection must contain no more than one object.


Returns a custom aggregate function‘s result.


The values listed in this enumeration are used to set the AggregateOperand.AggregateType property.

AggregateOperand does not support nested expressions and complex property paths like Max(Document.<PersonID>LastName). Only names of owned properties are supported: Max(Document).

AggregateOperand may produce null instead of zero for an empty collection on a server side.

The Single function requires that the collection contain no more than one object. If the collection contains more objects, use the Condition property to specify a condition. The collection must contain only one object that satisfies the condition; otherwise, the function’s behavior is undefined (the function may return an unexpected value or throw an exception).

The following code snippets (auto-collected from DevExpress Examples) contain references to the Aggregate enum.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also