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

InformationManagementExtensions.GetSitePolicyByName Method

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

Gets the site policy with the given name

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

Syntax

public static SitePolicyEntity GetSitePolicyByName(this Web web, String sitePolicy)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Web to operate on

sitePolicy

  Type: System.String
  Site policy to fetch

Return Value

Type: SitePolicyEntity
A OfficeDevPnP.Core.Entities.SitePolicyEntity object holding the fetched policy

See also

© 2018 Microsoft