IFrameEvaluateScriptAsync Method |
Version 51.0.0
Execute some Javascript code in the context of this WebBrowser, and return the result of the evaluation
in an Async fashion
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 51.0.0.0 (51.0.0.0)
Syntax Task<JavascriptResponse> EvaluateScriptAsync(
string script,
Nullable<TimeSpan> timeout = null
)
Task<JavascriptResponse^>^ EvaluateScriptAsync(
String^ script,
Nullable<TimeSpan> timeout = nullptr
)
Parameters
- script
- Type: SystemString
The Javascript code that should be executed. - 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