Condividi tramite


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

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

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

Syntax

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

Parameters

  • 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.

  • 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.

See also

Reference

ScriptLink class

ScriptLink members

Register overload

Microsoft.SharePoint.WebControls namespace