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

PageExtensions.EnsureWikiPage Method

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

Returns the Url for the requested wiki page, creates it if the pageis not yet available

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

Syntax

public static string EnsureWikiPage(this Web web, String wikiPageLibraryName, String wikiPageName)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Site to be processed - can be root web or sub site

wikiPageLibraryName

  Type: System.String
  Name of the wiki page library

wikiPageName

  Type: System.String
  Wiki page to operate on

Return Value

Type: string
The relative URL of the added wiki page

See also

© 2018 Microsoft