SPSite.IsScriptSafe method

SharePoint 2013

Validates the specified uri against the script safe settings of the site collection and returns true if safe, false if not

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public bool IsScriptSafe(
	string uri
)

Parameters

uri
Type: System.String

Return value

Type: System.Boolean
Show: