Version 130.1.90
Execute a string of JavaScript code in this V8 context.
Namespace: CefSharp.RenderProcessAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax bool Execute(
string code,
string scriptUrl,
int startLine,
out V8Exception exception
)
bool Execute(
String^ code,
String^ scriptUrl,
int startLine,
[OutAttribute] V8Exception^% exception
)
Parameters
- code String
- JavaScript code to execute
- scriptUrl String
- Is the URL where the script in question can be found, if any
- startLine Int32
- Is the base line number to use for error reporting.
- exception V8Exception
- Is the exception if any.
Return Value
BooleanOn success the function will return true. On failure
exception will be set to the exception, if any, and the function will return false.
See Also