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.