Share via


PublishingPage class

Provides publishing-related behavior for an .aspx page that is stored in a PublishingWeb object.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Client.ClientObject
    Microsoft.SharePoint.Client.Publishing.ScheduledItem
      Microsoft.SharePoint.Client.Publishing.PublishingPage

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

Syntax

'Declaration
Public NotInheritable Class PublishingPage _
    Inherits ScheduledItem
'Usage
Dim instance As PublishingPage
public sealed class PublishingPage : ScheduledItem

Remarks

A PublishingPage object is stored as a document library item in a designated document library of a PublishingWeb object. It contains references to the parts that define the .aspx page, such as the PageLayout class, the ContentType class, resources, and other parts. It contains PublishingPage content as field values in the document library item.

Many publishing pages may share common references such as page layout and resources. The server automatically updates these references in the PublishingPage object if the referenced items are renamed or moved within the system.

A schedule is associated with each PublishingPage object. The page is visible on the published site only between the scheduled start date (StartDate property) and end date (EndDate property). The scheduling behavior is part of the PublishingPage base class, ScheduledItem.

The PublishingPage class wraps the ListItem class. It also directly exposes the underlying ListItem (ListItem property) so that it can more easily access additional ListItem and File functionality.

You can instantiate the PublishingPage class by using the static GetPublishingPage(ListItem) method, or by retrieving it from a PublishingPageCollection object.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

PublishingPage members

Microsoft.SharePoint.Client.Publishing namespace