PublishingSite.PageLayouts property

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.

See also

Reference

PublishingSite class

PublishingSite members

Microsoft.SharePoint.Publishing namespace

PublishingSite

GetAvailablePageLayouts

GetAvailablePageLayouts