Share via


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)

Syntax

'Declaration
Public Property Aggregations As String
    Get
    Set
'Usage
Dim instance As SPView
Dim value As String

value = instance.Aggregations

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