共用方式為


CoreWebView2ExecuteScriptResult.TryGetResultAsString(String, Int32) Method

Definition

If Succeeded is true and the result of script execution is a string, this method provides the value of the string result, and we will get the false var value when the js result is not string type.

public void TryGetResultAsString (out string stringResult, out int value);
member this.TryGetResultAsString : string * int -> unit
Public Sub TryGetResultAsString (ByRef stringResult As String, ByRef value As Integer)

Parameters

stringResult
String
value
Int32

Applies to