TopicTransformationCoreRegisterStartupScript Method
This is used to register a block of script to execute in the $(document).ready() function by
presentation styles that support script.
Namespace: Sandcastle.Core.PresentationStyle.TransformationAssembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2025.12.18.0
public void RegisterStartupScript(
int priority,
string scriptBlock
)
Public Sub RegisterStartupScript (
priority As Integer,
scriptBlock As String
)
public:
void RegisterStartupScript(
int priority,
String^ scriptBlock
)
member RegisterStartupScript :
priority : int *
scriptBlock : string -> unit
Parameters
- priority Int32
- The priority of the script. Lower numbers will have higher priority
- scriptBlock String
- The script block to execute
Only unique script blocks are registered. Any subsequent calls to this method with an
identical script block will ignore the duplicates.