Fields property

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 ReadOnly Property Fields As SPFieldCollection
Dim instance As PublishingPage
Dim value As SPFieldCollection

value = instance.Fields

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.

© 2016 Microsoft