JSRuntime.BeginInvokeJS 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| BeginInvokeJS(JSInvocationInfo) |
開始一個非同步函式調用。 |
| BeginInvokeJS(Int64, String, String) |
開始一個非同步函式調用。 |
| BeginInvokeJS(Int64, String, String, JSCallResultType, Int64) |
開始以呼叫類型 FunctionCall的非同步函式調用。 想要更多設定選項,請使用 overload BeginInvokeJS(JSInvocationInfo)。 |
BeginInvokeJS(JSInvocationInfo)
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
開始一個非同步函式調用。
protected virtual void BeginInvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo invocationInfo);
abstract member BeginInvokeJS : JSInvocationInfo -> unit
override this.BeginInvokeJS : JSInvocationInfo -> unit
Protected Overridable Sub BeginInvokeJS (invocationInfo As JSInvocationInfo)
參數
- invocationInfo
- JSInvocationInfo
配置 .NET 對 JavaScript 的互操作呼叫。
適用於
BeginInvokeJS(Int64, String, String)
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- 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 virtual void BeginInvokeJS(long taskId, string identifier, string? argsJson);
protected abstract void BeginInvokeJS(long taskId, string identifier, string argsJson);
abstract member BeginInvokeJS : int64 * string * string -> unit
override this.BeginInvokeJS : int64 * string * string -> unit
abstract member BeginInvokeJS : int64 * string * string -> unit
Protected Overridable Sub BeginInvokeJS (taskId As Long, identifier As String, argsJson As String)
Protected MustOverride Sub BeginInvokeJS (taskId As Long, identifier As String, argsJson As String)
參數
- taskId
- Int64
函式調用的識別碼,若不需要非同步回調則為零。
- identifier
- String
函式要調用的識別碼。
- argsJson
- String
參數的 JSON 表示。
適用於
BeginInvokeJS(Int64, String, String, JSCallResultType, Int64)
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
- 來源:
- JSRuntime.cs
開始以呼叫類型 FunctionCall的非同步函式調用。 想要更多設定選項,請使用 overload BeginInvokeJS(JSInvocationInfo)。
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。