Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
SDK Documentation
PublishingWeb Class
 AllowAllPageLayouts Method

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
PublishingWeb.AllowAllPageLayouts Method (Microsoft.SharePoint.Publishing)
Resets the available PageLayoutobjects on this PublishingWeb to the complete set of layouts.

Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in microsoft.sharepoint.publishing.dll)
Visual Basic (Declaration)
Public Sub AllowAllPageLayouts ( _
    resetAllSubsitesToInherit As Boolean _
)
Visual Basic (Usage)
Dim instance As PublishingWeb
Dim resetAllSubsitesToInherit As Boolean

instance.AllowAllPageLayouts(resetAllSubsitesToInherit)
C#
public void AllowAllPageLayouts (
    bool resetAllSubsitesToInherit
)

Parameters

resetAllSubsitesToInherit

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

Exception typeCondition

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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker