SPView.GetAggregationString Method

Returns the formula that is implemented in an aggregate, or total, view of a list column.

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

public string GetAggregationString(
	string name
)

Parameters

name
Type: System.String

A string that represents the type of aggregation that is defined for that field in the view. Possible values include COUNT, AVG, MAX, MIN, SUM, STDEV, and VAR.

Return Value

Type: System.String
A string that contains the formula.

The value that is passed in the name parameter must be the same as the name specified by the Aggregations property.

Show: