Version 83.4.2
Execute a string of JavaScript code in this V8 context.
Namespace:
CefSharp.RenderProcess
Assembly:
CefSharp (in CefSharp.dll) Version: 83.4.2.0 (83.4.2.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
- Type: SystemString
JavaScript code to execute - scriptUrl
- Type: SystemString
Is the URL where the script in question can be found, if any - startLine
- Type: SystemInt32
Is the base line number to use for error reporting. - exception
- Type: CefSharp.RenderProcessV8Exception
Is the exception if any.
Return Value
Type:
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