Public Sub AllowAllPageLayouts ( _ resetAllSubsitesToInherit As Boolean _ )
Dim instance As PublishingWeb Dim resetAllSubsitesToInherit As Boolean instance.AllowAllPageLayouts(resetAllSubsitesToInherit)
public void AllowAllPageLayouts ( bool resetAllSubsitesToInherit )
This Boolean parameter indicates whether the available PageLayout objects are pushed down to all subsites.
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.
This operation is synchronous.