Export (0) Print
Expand All

PublishingWeb.AddPublishingPage method (String, PageLayout)

Creates a new PublishingPage object in the PublishingWeb.

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

public PublishingPage AddPublishingPage(
	string name,
	PageLayout layout
)

Parameters

name
Type: System.String

The name of the new PublishingPage object.

layout
Type: Microsoft.SharePoint.Publishing.PageLayout

The layout template (SPFile) used to render the new PublishingPage object.

Show:
© 2014 Microsoft