Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PageLayoutCollection class

Creates a collection of PageLayout objects.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class PageLayoutCollection : QueryBasedCollection<PageLayout>

This collection provides integer, string, and GUID indexer methods and supports foreach enumeration (For Each in Visual Basic) and a Count property that you can use when explicitly iterating over the collection. The PageLayoutCollection can be retrieved from methods such as GetPageLayouts, GetPageLayouts, and PageLayouts.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft