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.2.dll
NuGet Package: DevExpress.Data
#Declaration
public AggregateOperand Custom(
string customAggregateName,
IEnumerable<CriteriaOperator> aggregatedExpressions
)
#Parameters
Name | Type | Description |
---|---|---|
custom |
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. |
aggregated |
IEnumerable<Criteria |
A collection of aggregated expressions to be assigned to the Aggregate |
#Returns
Type | Description |
---|---|
Aggregate |
An Aggregate |