V8ScriptEngineCompile(String, String) Method |
Creates a compiled script with an associated document name.
Namespace: Microsoft.ClearScript.V8Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.4.5
Syntax public 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 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
V8ScriptA compiled script that can be executed multiple times without recompilation.
See Also