SPFieldLink.AggregationFunction Property

Gets or sets the aggregation function for the field. Used to promote and demote properties in XML documents.

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

Syntax

'Declaration
Public Property AggregationFunction As String
    Get
    Set
'Usage
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 string that contains the aggregation function. The default value is a null reference (Nothing in Visual Basic).

Remarks

If the XML document node that is specified by the XPath property stores a collection of values, you can use the AggregationFunction property to specify the action (sum, average, min, max, and so on) to take on the value set that is returned.

See Also

Reference

SPFieldLink Class

SPFieldLink Members

Microsoft.SharePoint Namespace

Other Resources

Using Content Types to Specify XML Document Properties

XML Parser Processing

FieldRef Element (ContentType)

Fields and Field References