Aggregations Property

SPView.Aggregations Property

Gets or sets field references for one or more aggregate, or total, columns used in a view.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[ClientCallableConstraintAttribute(FixedId = "validcaml", Type = ClientCallableConstraintType.Custom, 
	Value = "It MUST be null or be an XML fragment that conforms to the following XML schema, where FieldRefDefinitionAggregation is defined in [MS-WSSCAML]: <xs:sequence><xs:element name="FieldRef" type="FieldRefDefinitionAggregation" minOccurs="0" maxOccurs="unbounded" /></xs:sequence>")]
[ClientCallableAttribute]
public string Aggregations { get; set; }

Property Value

Type: System.String
A Collaborative Application Markup Language (CAML) string that contains the field references.

The Aggregations property contains a string like the following:

<FieldRef Name="_x006e_um2" Type="SUM" />
<FieldRef Name="_x004e_um1" Type="AVG" />
Show:
© 2016 Microsoft