共用方式為


SPView.GetAggregationString method

傳回實作彙總,或總計的檢視清單資料行的公式。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function GetAggregationString ( _
    name As String _
) As String
'用途
Dim instance As SPView
Dim name As String
Dim returnValue As String

returnValue = instance.GetAggregationString(name)
public string GetAggregationString(
    string name
)

參數

  • name
    Type: System.String

    字串,表示定義在檢視中該欄位的彙總的型別。可能值包括COUNT、 AVG、 MAX、 MIN、 SUM、 STDEV和VAR。

傳回值

Type: System.String
字串,包含公式。

備註

name參數中傳遞的值必須是Aggregations屬性所指定的名稱相同。

請參閱

參照

SPView class

SPView members

Microsoft.SharePoint namespace