SPSite.IsScriptSafe method

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 Function IsScriptSafe ( _
    uri As String _
) As Boolean
Dim instance As SPSite
Dim uri As String
Dim returnValue As Boolean

returnValue = instance.IsScriptSafe(uri)
public bool IsScriptSafe(
    string uri


Return value

Type: System.Boolean

See also


SPSite class

SPSite members

Microsoft.SharePoint namespace