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

WebExtensions.IsNoScriptSite Method

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

Detects if the site in question has no script enabled or not. Detection is done by verifying if the AddAndCustomizePages permission is missing. See https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f for the effects of NoScript

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

Syntax

public static bool IsNoScriptSite(this Site site)

Parameters

site

  Type: Microsoft.SharePoint.Client.Site
  site to verify

Return Value

Type: bool
True if noscript, false otherwise

See also

© 2018 Microsoft