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)

Syntax

'Declaration
Public ReadOnly Property Fields As SPFieldCollection
    Get
'Usage
Dim instance As PublishingPage
Dim value As SPFieldCollection

value = instance.Fields
public SPFieldCollection Fields { get; }

Property value

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

Remarks

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.

See also

Reference

PublishingPage class

PublishingPage members

Microsoft.SharePoint.Publishing namespace