다음을 통해 공유


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

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