Click or drag to resize

V8RuntimeCompile Method (String, String)

Creates a compiled script with an associated document name.

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

Parameters

documentName
Type: SystemString
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
Type: SystemString
The script code to compile.

Return Value

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