다음을 통해 공유


PublishingPage Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class PublishingPage _
    Inherits ScheduledItem
'Usage
Dim instance As PublishingPage
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
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 SPContentType 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 SPListItem class. It also directly exposes the underlying SPListItem (ListItem property) so that it can more easily access additional SPListItem and File functionality.

You can instantiate the PublishingPage class by using the static GetPublishingPage 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.Publishing Namespace