Click or drag to resize

V8RuntimeCompile Method (DocumentInfo, String)

Creates a compiled script with the specified document meta-information.

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

Parameters

documentInfo
Type: Microsoft.ClearScriptDocumentInfo
A structure containing meta-information for the script document.
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