Compartilhar via


ScriptLink.Register method (Page, String, Boolean)

Registers the specified script file for the specified Web page and localizable value.

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

Syntax

'Declaration
Public Shared Sub Register ( _
    page As Page, _
    name As String, _
    localizable As Boolean _
)
'Usage
Dim page As Page
Dim name As String
Dim localizable As BooleanScriptLink.Register(page, name, localizable)
public static void Register(
    Page page,
    string name,
    bool localizable
)

Parameters

  • name
    Type: System.String

    A string that contains the name of the script file.

  • localizable
    Type: System.Boolean

    true if the script can be localized; otherwise, false.

Examples

ScriptLink.Register(Page,"ExampleScript.js", false);
ScriptLink.Register(Page,"ExampleScript.js", False)

See also

Reference

ScriptLink class

ScriptLink members

Register overload

Microsoft.SharePoint.WebControls namespace