Share via


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 [P:Microsoft.SharePoint.Publishing.PublishingPage.ListItem's] 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