JSRuntime.BeginInvokeJS 方法

定义

重载

BeginInvokeJS(Int64, String, String)

开始异步函数调用。

BeginInvokeJS(Int64, String, String, JSCallResultType, Int64)

开始异步函数调用。

BeginInvokeJS(Int64, String, String)

Source:
JSRuntime.cs
Source:
JSRuntime.cs
Source:
JSRuntime.cs
Source:
JSRuntime.cs
Source:
JSRuntime.cs
Source:
JSRuntime.cs

开始异步函数调用。

protected:
 abstract void BeginInvokeJS(long taskId, System::String ^ identifier, System::String ^ argsJson);
protected:
 virtual void BeginInvokeJS(long taskId, System::String ^ identifier, System::String ^ argsJson);
protected abstract void BeginInvokeJS (long taskId, string identifier, string argsJson);
protected virtual void BeginInvokeJS (long taskId, string identifier, string? argsJson);
abstract member BeginInvokeJS : int64 * string * string -> unit
abstract member BeginInvokeJS : int64 * string * string -> unit
override this.BeginInvokeJS : int64 * string * string -> unit
Protected MustOverride Sub BeginInvokeJS (taskId As Long, identifier As String, argsJson As String)
Protected Overridable Sub BeginInvokeJS (taskId As Long, identifier As String, argsJson As String)

参数

taskId
Int64

函数调用的标识符;如果不需要异步回调,则为零。

identifier
String

要调用的函数的标识符。

argsJson
String

参数的 JSON 表示形式。

适用于

BeginInvokeJS(Int64, String, String, JSCallResultType, Int64)

Source:
JSRuntime.cs
Source:
JSRuntime.cs
Source:
JSRuntime.cs
Source:
JSRuntime.cs

开始异步函数调用。

protected:
 abstract void BeginInvokeJS(long taskId, System::String ^ identifier, System::String ^ argsJson, Microsoft::JSInterop::JSCallResultType resultType, long targetInstanceId);
protected abstract void BeginInvokeJS (long taskId, string identifier, string? argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId);
abstract member BeginInvokeJS : int64 * string * string * Microsoft.JSInterop.JSCallResultType * int64 -> unit
Protected MustOverride Sub BeginInvokeJS (taskId As Long, identifier As String, argsJson As String, resultType As JSCallResultType, targetInstanceId As Long)

参数

taskId
Int64

函数调用的标识符;如果不需要异步回调,则为零。

identifier
String

要调用的函数的标识符。

argsJson
String

参数的 JSON 表示形式。

resultType
JSCallResultType

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

targetInstanceId
Int64

目标 JS 对象的实例 ID。

适用于