Partager via


FieldReferences Property

The FieldReferences property of the SPField class gets a string array that contains the names of fields referenced in a computed field.

Property Value

A string array that contains the names of the fields.

Example

The following code example displays the names of fields that involve field references and the names of the fields that are referenced.

This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.

The example assumes the existence of a .aspx page that contains a label control.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security