Language

CoreWebView2ExecuteScriptResult.ResultAsJson Property

Definition

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

public string ResultAsJson { get; }
member this.ResultAsJson : string
Public ReadOnly Property ResultAsJson As String

Property Value

Remarks

If the result is undefined, contains a reference cycle, or otherwise is not able to be encoded into JSON, then the result is considered to be null, which is encoded in JSON as the string "null". A function that has no explicit return value returns undefined. If the script that was run throws an unhandled exception, then the result is also "null".

Applies to