次の方法で共有


WebAssemblyJSRuntime.InvokeJS メソッド

定義

オーバーロード

名前 説明
InvokeJS(JSInvocationInfo)

同期関数の呼び出しを実行します。

InvokeJS(String, String)

同期関数の呼び出しを実行します。

InvokeJS(String, String, JSCallResultType, Int64)

呼び出しの種類 FunctionCallを使用して同期関数呼び出しを実行します。 その他の構成オプションについては、オーバーロード InvokeJS(JSInvocationInfo)を使用します。

InvokeJS(JSInvocationInfo)

ソース:
WebAssemblyJSRuntime.cs

同期関数の呼び出しを実行します。

protected override string InvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo invocationInfo);
override this.InvokeJS : JSInvocationInfo -> string
Protected Overrides Function InvokeJS (invocationInfo As JSInvocationInfo) As String

パラメーター

invocationInfo
JSInvocationInfo

相互運用呼び出しの構成。

戻り値

結果の JSON 表現。

適用対象

InvokeJS(String, String)

ソース:
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)

ソース:
WebAssemblyJSRuntime.cs
ソース:
WebAssemblyJSRuntime.cs
ソース:
WebAssemblyJSRuntime.cs
ソース:
WebAssemblyJSRuntime.cs
ソース:
WebAssemblyJSRuntime.cs
ソース:
WebAssemblyJSRuntime.cs

呼び出しの種類 FunctionCallを使用して同期関数呼び出しを実行します。 その他の構成オプションについては、オーバーロード InvokeJS(JSInvocationInfo)を使用します。

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 表現。

適用対象