Share via


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)

Syntax

'Declaration
Public Function IsScriptSafe ( _
    uri As String _
) As Boolean
'Usage
Dim instance As SPSite
Dim uri As String
Dim returnValue As Boolean

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

Parameters

Return value

Type: System.Boolean

See also

Reference

SPSite class

SPSite members

Microsoft.SharePoint namespace