Share via


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)

Syntax

'Declaration
Public Function GetAggregationString ( _
    name As String _
) As String
'Usage
Dim instance As SPView
Dim name As String
Dim returnValue As String

returnValue = instance.GetAggregationString(name)
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.

Remarks

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

See also

Reference

SPView class

SPView members

Microsoft.SharePoint namespace