SPPageContentManager.IsClientScriptBlockRegistered method (Page, Type, String)

Determines whether a pre-page-render script block that matches the specified key and type has been registered.

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

Syntax

'Declaration
Public Shared Function IsClientScriptBlockRegistered ( _
    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.IsClientScriptBlockRegistered(page, _
    type, key)
public static bool IsClientScriptBlockRegistered(
    Page page,
    Type type,
    string key
)

Parameters

  • type
    Type: System.Type

    The type of the client script block to search for.

  • key
    Type: System.String

    A unique identifier for the script block.

Return value

Type: System.Boolean
true if the client script block is registered; otherwise, false.

See also

Reference

SPPageContentManager class

SPPageContentManager members

IsClientScriptBlockRegistered overload

Microsoft.SharePoint.WebControls namespace