Click or drag to resize

V8RuntimeCompile(String, String) Method

Creates a compiled script with an associated document name.

Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.4.5
Syntax
public V8Script Compile(
	string documentName,
	string code
)

Parameters

documentName  String
A document name for the compiled script. Currently, this name is used only as a label in presentation contexts such as debugger user interfaces.
code  String
The script code to compile.

Return Value

V8Script
A compiled script that can be executed by multiple V8 script engine instances.
See Also