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

PublishingWeb.InheritAvailablePageLayouts method

Sets the PageLayouts available on this PublishingWeb object to be inherited from the parent PublishingWeb object.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
public void InheritAvailablePageLayouts()

The root site cannot inherit properties.

After calling this method, the GetAvailablePageLayouts() method returns the same set of PageLayout objects that are specified in the parent PublishingWeb class. The IsInheritingAvailablePageLayouts property is true. The IsAllowingAllPageLayouts property returns the same value as the parent PublishingWeb.

Calling this method on the root site is not supported and results in an error.

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

Community Additions

© 2014 Microsoft. All rights reserved.