Table of contents
TOC
Collapse the table of content
Expand the table of content

BrandingExtensions.GetPageLayoutListItemByName Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Gets a page layout from the master page catalog. Can be called with paramter as "pagelayout.aspx" or as full path like "_catalog/masterpage/pagelayout.aspx"

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static ListItem GetPageLayoutListItemByName(this Web web, String pageLayoutName)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  root web

pageLayoutName

  Type: System.String
  name of the page layout to retrieve

Return Value

Type: ListItem
ListItem holding the page layout, null if not found

See also

© 2018 Microsoft