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

InformationManagementExtensions.SetClosedBySitePolicy Method

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

Close a site, if it has a site policy applied and is currently not closed

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

Syntax

public static bool SetClosedBySitePolicy(this Web web)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
   Close a site, if it has a site policy applied and is currently not closed

Return Value

Type: bool
True if site was closed, false otherwise

See also

© 2018 Microsoft