PageLayoutCollection Class
Creates a collection of PageLayout objects.
Inheritance Hierarchy
System.Object
Microsoft.SharePoint.Publishing.CollectionBase<PageLayout>
Microsoft.SharePoint.Publishing.QueryBasedCollection<PageLayout>
Microsoft.SharePoint.Publishing.PageLayoutCollection
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class PageLayoutCollection _
Inherits QueryBasedCollection(Of PageLayout)
'Usage
Dim instance As PageLayoutCollection
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class PageLayoutCollection : QueryBasedCollection<PageLayout>
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.