Lingua

CoreWebView2ExecuteScriptResult Class

Definition

public class CoreWebView2ExecuteScriptResult
type CoreWebView2ExecuteScriptResult = class
Public Class CoreWebView2ExecuteScriptResult
Inheritance
CoreWebView2ExecuteScriptResult

Properties

Name Description
Exception

Gets the unhandled exception thrown by script execution when Succeeded is false.

ResultAsJson

Gets the JSON encoded string that represents the result of running the provided JavaScript.

Succeeded

This property is true if ExecuteScriptWithResultAsync(String) successfully executed script with no unhandled exceptions and the result is available in the ResultAsJson property.

Methods

Name Description
TryGetResultAsString(String, Int32)

If Succeeded is true and the result of script execution is a string, this method provides the value of the string result in stringResult and sets value to 1; otherwise, stringResult is set to an empty string and value is set to 0.

Applies to