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

PublishingWeb.AllowAllPageLayouts method

Resets the available PageLayout objects on this PublishingWeb to the complete set of layouts.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
public void AllowAllPageLayouts(
	bool resetAllSubsitesToInherit
)

Parameters

resetAllSubsitesToInherit
Type: System.Boolean

This Boolean parameter indicates whether the available PageLayout objects are pushed down to all subsites.

ExceptionCondition
[System.UnauthorizedAccessException]

The current user does not have sufficient permissions to perform this action.

After calling this method, the GetAvailablePageLayouts method returns the complete set of PageLayout objects. The IsInheritingAvailablePageLayouts property is set to false. The IsAllowingAllPageLayouts property is set to True.

After calling this method, you should call the Update method to save the changes.

NoteNote

This operation is synchronous.

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

Community Additions

Show:
© 2014 Microsoft. All rights reserved.