Click or drag to resize

IV8ContextExecute Method

Version 99.2.120
Execute a string of JavaScript code in this V8 context.

Namespace:  CefSharp.RenderProcess
Assembly:  CefSharp (in CefSharp.dll) Version: 99.2.120.0 (99.2.120.0)
Syntax
bool Execute(
	string code,
	string scriptUrl,
	int startLine,
	out 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: Boolean
On 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