Share via


SPScriptSafePagesCollection.Add method

Adds a site collection relative URL to the list of script safe internal pages.

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

Syntax

'Declaration
Public Sub Add ( _
    pageUrl As String _
)
'Usage
Dim instance As SPScriptSafePagesCollection
Dim pageUrl As String

instance.Add(pageUrl)
public void Add(
    string pageUrl
)

Parameters

  • pageUrl
    Type: System.String

    The site collection relative URL to add to the list.

Remarks

The added page must be a page under the _layouts folder.

See also

Reference

SPScriptSafePagesCollection class

SPScriptSafePagesCollection members

Microsoft.SharePoint namespace