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

PageExtensions.AddClientSidePage Method

SharePoint Dev Documents|Last Updated: 6/28/2017
|
1 Contributor

Adds a client side "modern" page to a "classic" or "modern" site

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

Syntax

public static ClientSidePage AddClientSidePage(this Web web, String pageName = "", Boolean alreadyPersist = False)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Web to add the page to

(optional) pageName

  Type: System.String
  Name (e.g. demo.aspx) of the page to be added

(optional) alreadyPersist

  Type: System.Boolean
  Already persist the created, empty, page before returning the instantiated instance

Return Value

Type: ClientSidePage
A OfficeDevPnP.Core.Pages.ClientSidePage instance

See also

© 2018 Microsoft