Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets a collection of non-obsolete PageLayout objects from the master page gallery of the RootWeb property.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public ReadOnly Property PageLayouts As PageLayoutCollection
Get
'Usage
Dim instance As PublishingSite
Dim value As PageLayoutCollection
value = instance.PageLayouts
public PageLayoutCollection PageLayouts { get; }
Property Value
Type: Microsoft.SharePoint.Publishing.PageLayoutCollection
A collection of PageLayout objects from the master page gallery of the RootWeb property.
Remarks
PageLayout objects that are obsolete and have been marked as hidden are not returned in the collection. This is similar to calling the GetPageLayouts method and passing a value of true.