EptDataSourceAggregation Property Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Gets or sets a value indicating whether and how the data should be aggregated. If this property is anything but QueryAggregate.None, paging, delete, insert and update operations are not supported and the returned DocumentId will always be 0.

Namespace: ContentStudio.Site.Controls
Assembly: ContentStudio.Site.Controls (in ContentStudio.Site.Controls.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public XmlIndexQueryQueryAggregate Aggregation { get; set; }

Property Value

Type: XmlIndexQueryQueryAggregate
None turns off aggregation, any other value applies a specific aggregation on the result.
Exceptions

Remarks

This property was added in Content Studio version 5.3

GroupAndCount will return distinct values from all fields chosen and a parameter named aggregatevalue that contains the count for distinct values. SelectDistinctValues will return the same as above except aggregatevalue. The other three options requires that the value in field one will only contains integer values for all returned documents. Only the field aggregatevalue will be returned for the first field. DocumentId will return 0 for all options except for None and pagesize will be ignored. By default, sorting is done on the aggregatevalue ASC, but can be changed.

See Also

Reference