次の方法で共有


AggregateType Enumeration

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

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Enumeration AggregateType
'Usage
Dim instance As AggregateType
[SerializableAttribute]
public enum AggregateType

Members

Member name Description
Minimum Indicates that the groups are sorted starting with the smallest value for the AggregateOn property.
Maximum Indicates that the groups are sorted starting with the largest 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:

  • Maximum

  • Minimum

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.

See Also

Reference

Other Resources