AggregateOperand.Single(CriteriaOperator) Method

Creates a new AggregateOperand which returns the single object from the AggregateOperand.CollectionProperty that matches the specified AggregateOperand.Condition. The collection must be empty or contain exactly one object.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v20.2.dll

Declaration

public AggregateOperand Single(
    CriteriaOperator aggregatedExpression
)
Public Function Single(
    aggregatedExpression As CriteriaOperator
) As AggregateOperand

Parameters

Name Type Description
aggregatedExpression CriteriaOperator

A CriteriaOperator object which specifies the aggregate expression.

Returns

Type Description
AggregateOperand

An AggregateOperand object which calculates an aggregate expression.

See Also