Export (0) Print
Expand All

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:
© 2014 Microsoft