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.3.1
Syntaxpublic V8Script Compile(
string documentName,
string code
)
Public Function Compile (
documentName As String,
code As String
) As V8Script
public:
V8Script^ Compile(
String^ documentName,
String^ code
)
member Compile :
documentName : string *
code : string -> V8Script
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:
V8ScriptA compiled script that can be executed by multiple V8 script engine instances.
See Also