IFrameEvaluateScriptAsync Method |
Version 75.1.140
Execute some Javascript code in the context of this WebBrowser, and return the result of the evaluation
in an Async fashion
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 75.1.140.0 (75.1.140.0)
Syntax Task<JavascriptResponse> EvaluateScriptAsync(
string script,
string scriptUrl = "about:blank",
int startLine = 1,
Nullable<TimeSpan> timeout = null
)
Task<JavascriptResponse^>^ EvaluateScriptAsync(
String^ script,
String^ scriptUrl = L"about:blank",
int startLine = 1,
Nullable<TimeSpan> timeout = nullptr
)
Parameters
- script
- Type: SystemString
The Javascript code that should be executed. - scriptUrl (Optional)
- Type: SystemString
is the URL where the script in question can be found, if any. - startLine (Optional)
- Type: SystemInt32
is the base line number to use for error reporting. - timeout (Optional)
- Type: SystemNullableTimeSpan
The timeout after which the Javascript code execution should be aborted.
Return Value
Type:
TaskJavascriptResponseA Task that can be awaited to perform the script execution
See Also