File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,18 @@ interface ICoreWebView2ExecuteScriptWithResultCompletedHandler : IUnknown {
257257[uuid(67E0B57B-1AC7-4395 -9793 -5E4EF9C4B7D9), object, pointer_default(unique)]
258258interface ICoreWebView2_10 : ICoreWebView2_9 {
259259
260- /// Allows you to execute JavaScript and receive the successful result as JSON or as a string,
261- /// or in the case of an unhandled exception you can get the exception.
260+ /// Run JavaScript code from the javascript parameter in the current
261+ /// top-level document rendered in the WebView. The result of evaluating
262+ /// the provided JavaScript is used in this parameter.
263+ /// The result of the execution will be returned in a structure.
264+ /// If the execution is successful, the developer can obtain the returned result.
265+ /// And if the execution fails, the error/exception information can be obtained.
266+
267+ /// This method is applied asynchronously. If the method is
268+ /// run after the ` NavigationStarting ` event during a navigation, the script
269+ /// runs in the new document when loading it, around the time
270+ /// ` ContentLoading ` is run. This operation executes the script even if
271+ /// ` ICoreWebView2Settings::IsScriptEnabled ` is set to ` FALSE ` .
262272 HRESULT ExecuteScriptWithResult(
263273 [ in] LPCWSTR javaScript,
264274 [ in] ICoreWebView2ExecuteScriptWithResultCompletedHandler* handler);
You can’t perform that action at this time.
0 commit comments