JSInProcessRuntime.InvokeJS 方法

定义

重载

InvokeJS(String, String)

执行同步函数调用。

InvokeJS(String, String, JSCallResultType, Int64)

执行同步函数调用。

InvokeJS(String, String)

Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs

执行同步函数调用。

protected:
 abstract System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected:
 virtual System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected abstract string InvokeJS (string identifier, string argsJson);
protected virtual string? InvokeJS (string identifier, string? argsJson);
abstract member InvokeJS : string * string -> string
abstract member InvokeJS : string * string -> string
override this.InvokeJS : string * string -> string
Protected MustOverride Function InvokeJS (identifier As String, argsJson As String) As String
Protected Overridable Function InvokeJS (identifier As String, argsJson As String) As String

参数

identifier
String

要调用的函数的标识符。

argsJson
String

参数的 JSON 表示形式。

返回

结果的 JSON 表示形式。

适用于

InvokeJS(String, String, JSCallResultType, Int64)

Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs

执行同步函数调用。

protected:
 abstract System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson, Microsoft::JSInterop::JSCallResultType resultType, long targetInstanceId);
protected abstract string? InvokeJS (string identifier, string? argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId);
abstract member InvokeJS : string * string * Microsoft.JSInterop.JSCallResultType * int64 -> string
Protected MustOverride 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 表示形式。

适用于