Partilhar via


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