Skip to main content

AggregateOperand.Custom(String, IEnumerable<CriteriaOperator>) Method

Creates a new custom AggregateOperand that returns values calculated by the given aggregate expression. This expression is evaluated against elements of the AggregateOperand.CollectionProperty that match the specified AggregateOperand.Condition.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public AggregateOperand Custom(
    string customAggregateName,
    IEnumerable<CriteriaOperator> aggregatedExpressions
)

Parameters

Name Type Description
customAggregateName String

A custom aggregate function‘s name. This value cannot be null (Nothing in Visual Basic) or match a standard aggregate name: Sum, Min, Max, Avg, Count, Exists, or Single.

aggregatedExpressions IEnumerable<CriteriaOperator>

A collection of aggregated expressions to be assigned to the AggregateOperand.CustomAggregateOperands property.

Returns

Type Description
AggregateOperand

An AggregateOperand object which calculates an aggregate expression.

See Also