SPPageContentManager.IsStartupScriptRegistered method (Page, Type, String)

Determines whether a startup script matching the specified key and type has been registered.

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

Syntax

'Declaration
Public Shared Function IsStartupScriptRegistered ( _
    page As Page, _
    type As Type, _
    key As String _
) As Boolean
'Usage
Dim page As Page
Dim type As Type
Dim key As String
Dim returnValue As Boolean

returnValue = SPPageContentManager.IsStartupScriptRegistered(page, _
    type, key)
public static bool IsStartupScriptRegistered(
    Page page,
    Type type,
    string key
)

Parameters

  • type
    Type: System.Type

    The type of the startup script to search for.

  • key
    Type: System.String

    A unique identifier for the script block.

Return value

Type: System.Boolean
true if a startup script matching the specified key and type has been registered; otherwise, false.

See also

Reference

SPPageContentManager class

SPPageContentManager members

IsStartupScriptRegistered overload

Microsoft.SharePoint.WebControls namespace