共用方式為


SPFieldLink.AggregationFunction property

取得或設定欄位的彙總函數。用來將升級和降級 XML 文件中的屬性。

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

Syntax

'宣告
Public Property AggregationFunction As String
    Get
    Set
'用途
Dim instance As SPFieldLink
Dim value As String

value = instance.AggregationFunction

instance.AggregationFunction = value
public string AggregationFunction { get; set; }

Property value

Type: System.String
內含的彙總函數的字串。預設值為a null reference (Nothing in Visual Basic)。

備註

如果XPath屬性所指定的 XML 文件節點儲存的值集合,您可以使用AggregationFunction屬性來指定要設定傳回的值上採取的動作 (sum、 平均、 最小、 最大,依此類推)。

請參閱

參照

SPFieldLink class

SPFieldLink members

Microsoft.SharePoint namespace

其他資源

Using Content Types to Specify XML Document Properties

XMl Parser Processing

FieldRef Element (ContentType)

Fields and Field References