WebAssemblyJSRuntime.InvokeJS 方法

定义

重载

InvokeJS(String, String)

执行同步函数调用。

InvokeJS(String, String, JSCallResultType, Int64)

执行同步函数调用。

InvokeJS(String, String)

Source:
WebAssemblyJSRuntime.cs

执行同步函数调用。

protected:
 override System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected override string InvokeJS (string identifier, string argsJson);
override this.InvokeJS : string * string -> string
Protected Overrides Function InvokeJS (identifier As String, argsJson As String) As String

参数

identifier
String

要调用的函数的标识符。

argsJson
String

参数的 JSON 表示形式。

返回

结果的 JSON 表示形式。

适用于

InvokeJS(String, String, JSCallResultType, Int64)

Source:
WebAssemblyJSRuntime.cs
Source:
WebAssemblyJSRuntime.cs
Source:
WebAssemblyJSRuntime.cs
Source:
WebAssemblyJSRuntime.cs

执行同步函数调用。

protected override string InvokeJS (string identifier, string argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId);
protected override string InvokeJS (string identifier, string? argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId);
override this.InvokeJS : string * string * Microsoft.JSInterop.JSCallResultType * int64 -> string
Protected Overrides Function InvokeJS (identifier As String, argsJson As String, resultType As JSCallResultType, targetInstanceId As Long) As String

参数

identifier
String

要调用的函数的标识符。

argsJson
String

参数的 JSON 表示形式。

resultType
JSCallResultType

预期来自调用的结果的类型。

targetInstanceId
Int64

目标 JS 对象的实例 ID。

返回

结果的 JSON 表示形式。

适用于