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

PageExtensions.SetWebPartProperty Method

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

Sets a web part property

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

Syntax

public static void SetWebPartProperty(this Web web, String key, String value, Guid id, String serverRelativePageUrl)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  The web to process

key

  Type: System.String
  The key to update

value

  Type: System.String
  The value to set

id

  Type: System.Guid
  The id of the webpart

serverRelativePageUrl

  Type: System.String
  Server relative url of the page to set web part property

Return Value

Type: void

See also

© 2018 Microsoft