PublishingPage.Fields property

Gets the underlying SPField object definitions for this PublishingPage object.

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

public SPFieldCollection Fields { get; }

Property value

Type: Microsoft.SharePoint.SPFieldCollection
An SPFieldCollection that contains the underlying SPField object definitions of the PublishingPage.

Use this property to access the SPField definitions for the PublishingPage. To access the actual values of these fields for the current PublishingPage, use the ListItem() indexer methods to look up the field values by ID or other values. These methods wrap the Fields property.

The user must have View permissions on the PublishingPage to retrieve the PublishingPage and to return its property values.