All docs
V20.2
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v20.2.dll

Declaration

public AggregateOperand Custom(
    string customAggregateName,
    IEnumerable<CriteriaOperator> aggregatedExpressions
)
Public Function Custom(
    customAggregateName As String,
    aggregatedExpressions As IEnumerable(Of CriteriaOperator)
) As AggregateOperand

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