Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InheritAvailablePageLayouts method

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()

ExceptionCondition
[System.InvalidOperationException]

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.

Show:
© 2015 Microsoft