WebAssemblyJSRuntime.BeginInvokeJS 方法

定義

多載

名稱 Description
BeginInvokeJS(JSInvocationInfo)

開始一個非同步函式調用。

BeginInvokeJS(Int64, String, String)

開始一個非同步函式調用。

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

開始以呼叫類型 FunctionCall的非同步函式調用。 想要更多設定選項,請使用 overload BeginInvokeJS(JSInvocationInfo)

BeginInvokeJS(JSInvocationInfo)

來源:
WebAssemblyJSRuntime.cs
來源:
WebAssemblyJSRuntime.cs

開始一個非同步函式調用。

protected override void BeginInvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo invocationInfo);
override this.BeginInvokeJS : JSInvocationInfo -> unit
Protected Overrides Sub BeginInvokeJS (invocationInfo As JSInvocationInfo)

參數

invocationInfo
JSInvocationInfo

配置 .NET 對 JavaScript 的互操作呼叫。

適用於

BeginInvokeJS(Int64, String, String)

來源:
WebAssemblyJSRuntime.cs

開始一個非同步函式調用。

protected:
 override void BeginInvokeJS(long asyncHandle, System::String ^ identifier, System::String ^ argsJson);
protected override void BeginInvokeJS(long asyncHandle, string identifier, string argsJson);
override this.BeginInvokeJS : int64 * string * string -> unit
Protected Overrides Sub BeginInvokeJS (asyncHandle As Long, identifier As String, argsJson As String)

參數

asyncHandle
Int64
identifier
String

函式要調用的識別碼。

argsJson
String

參數的 JSON 表示。

適用於

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

來源:
WebAssemblyJSRuntime.cs
來源:
WebAssemblyJSRuntime.cs
來源:
WebAssemblyJSRuntime.cs
來源:
WebAssemblyJSRuntime.cs
來源:
WebAssemblyJSRuntime.cs
來源:
WebAssemblyJSRuntime.cs
來源:
WebAssemblyJSRuntime.cs

開始以呼叫類型 FunctionCall的非同步函式調用。 想要更多設定選項,請使用 overload BeginInvokeJS(JSInvocationInfo)

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

參數

asyncHandle
Int64
identifier
String

函式要調用的識別碼。

argsJson
String

參數的 JSON 表示。

resultType
JSCallResultType

召喚所期望的結果類型。

targetInstanceId
Int64

目標 JS 物件的實例 ID。

適用於