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> _
<GeneratedCodeAttribute("wsdl", "2.0.50727.42")> _
<XmlTypeAttribute(Namespace:="http://schemas.microsoft.com/exchange/services/2006/types")> _
Public Enumeration AggregateType
[SerializableAttribute] 
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
[XmlTypeAttribute(Namespace="http://schemas.microsoft.com/exchange/services/2006/types")] 
public enum AggregateType
[SerializableAttribute] 
[GeneratedCodeAttribute(L"wsdl", L"2.0.50727.42")] 
[XmlTypeAttribute(Namespace=L"http://schemas.microsoft.com/exchange/services/2006/types")] 
public enum class AggregateType
/** @attribute SerializableAttribute() */ 
/** @attribute GeneratedCodeAttribute("wsdl", "2.0.50727.42") */ 
/** @attribute XmlTypeAttribute(Namespace="http://schemas.microsoft.com/exchange/services/2006/types") */ 
public enum AggregateType
SerializableAttribute 
GeneratedCodeAttribute("wsdl", "2.0.50727.42") 
XmlTypeAttribute(Namespace="http://schemas.microsoft.com/exchange/services/2006/types") 
public enum AggregateType

Members

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

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)

See Also

Reference

ExchangeWebServices Namespace

Other Resources

AggregateOn