AggregateType Enum

Definition

The AggregateType enumeration identifies whether the maximum or minimum value of a representative property is used to order the items in a group.

public enum class AggregateType
public enum AggregateType
Public Enum AggregateType
Inheritance
AggregateType

Fields

Maximum 1

Indicates that the groups are sorted starting with the largest value for the AggregateOn property.

Minimum 0

Indicates that the groups are sorted starting with the smallest value for the AggregateOn property.

Remarks

When you are using aggregation to sort items within a group, you must identify a representative property by which to sort the groups. Use the AggregateOn property to specify the representative property and the Aggregate property to indicate whether the groups are sorted according to the maximum or the minimum value of the identified property. The Aggregate property value is set to one of the following AggregateType enumeration values:

If the Aggregate property is set to Maximum, the groups are sorted starting with the largest value for the AggregateOn property. If the Aggregate attribute is set to Minimum, the groups are sorted starting with the smallest value for the AggregateOn property.

For example, if you want to issue a FindItem grouped query, grouping by sender, but you want to order the groups so that the group that has the most recent e-mail is on top, you can group by sender and aggregate on date/time received with an Aggregate property of Maximum.

Applies to