ScriptLink.Register method (Page, String, Boolean, Boolean, String, String)

Registers the specified script file for the specified user interface (UI) version, Web page, script language, and localizable and defer values.

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, _
    defer As Boolean, _
    language As String, _
    uiVersion As String _
)
'Usage
Dim page As Page
Dim name As String
Dim localizable As Boolean
Dim defer As Boolean
Dim language As String
Dim uiVersion As StringScriptLink.Register(page, name, localizable, _
    defer, language, uiVersion)
public static void Register(
    Page page,
    string name,
    bool localizable,
    bool defer,
    string language,
    string uiVersion
)

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.

  • defer
    Type: System.Boolean

    true to defer downloading and parsing of script files, including the core.js file, until after other elements of the page are downloaded; otherwise, false.

  • language
    Type: System.String

    A string that specifies the scripting language.

  • uiVersion
    Type: System.String

    A string that contains the UI version or versions with which the script is compatible, ether a numeric string or semicolon-delimited list of numeric strings, or a null reference (Nothing in Visual Basic) if no version is specified.

See also

Reference

ScriptLink class

ScriptLink members

Register overload

Microsoft.SharePoint.WebControls namespace