Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PublishingWeb.SetDefaultPageLayout method

Specifies the URL token that will be used when creating “one-click” pages within the current PublishingWeb object.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
public void SetDefaultPageLayout(
	PageLayout pageLayout,
	bool resetAllSubsitesToInherit


Type: Microsoft.SharePoint.Publishing.PageLayout

The URL token representing the page layout to be set.

Type: System.Boolean

Indicates whether this setting should be pushed down to all subsites

After calling this method, the NewPageUrlToken will return the given page layout and the given URL token. The IsInheritingNewPageUrlToken property will be False.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.