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

Syntax

'Declaration
<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 Property Aggregations As String
    Get
    Set
'Usage
Dim instance As SPView
Dim value As String

value = instance.Aggregations

instance.Aggregations = value
[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.

Remarks

The Aggregations property contains a string like the following:

<FieldRef Name="_x006e_um2" Type="SUM" />
<FieldRef Name="_x004e_um1" Type="AVG" />

See Also

Reference

SPView Class

SPView Members

Microsoft.SharePoint Namespace