Jazyk

WebAssemblyJSRuntime.InvokeJS Metoda

Definice

Přetížení

Název Description
InvokeJS(JSInvocationInfo)

Provede synchronní vyvolání funkce.

InvokeJS(String, String)

Provede synchronní vyvolání funkce.

InvokeJS(String, String, JSCallResultType, Int64)

Provede synchronní vyvolání funkce s typem FunctionCallvolání . Pro další možnosti konfigurace použijte přetížení InvokeJS(JSInvocationInfo).

InvokeJS(JSInvocationInfo)

Zdroj:
WebAssemblyJSRuntime.cs
Zdroj:
WebAssemblyJSRuntime.cs

Provede synchronní vyvolání funkce.

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

Parametry

invocationInfo
JSInvocationInfo

Konfigurace volání zprostředkovatele komunikace

Návraty

Reprezentace výsledku ve formátu JSON

Platí pro

InvokeJS(String, String)

Zdroj:
WebAssemblyJSRuntime.cs

Provede synchronní vyvolání funkce.

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

Parametry

identifier
String

Identifikátor funkce, která se má vyvolat.

argsJson
String

Reprezentace argumentů ve formátu JSON

Návraty

Reprezentace výsledku ve formátu JSON

Platí pro

InvokeJS(String, String, JSCallResultType, Int64)

Zdroj:
WebAssemblyJSRuntime.cs
Zdroj:
WebAssemblyJSRuntime.cs
Zdroj:
WebAssemblyJSRuntime.cs
Zdroj:
WebAssemblyJSRuntime.cs
Zdroj:
WebAssemblyJSRuntime.cs
Zdroj:
WebAssemblyJSRuntime.cs
Zdroj:
WebAssemblyJSRuntime.cs

Provede synchronní vyvolání funkce s typem FunctionCallvolání . Pro další možnosti konfigurace použijte přetížení 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

Parametry

identifier
String

Identifikátor funkce, která se má vyvolat.

argsJson
String

Reprezentace argumentů ve formátu JSON

resultType
JSCallResultType

Typ výsledku očekávaného od vyvolání.

targetInstanceId
Int64

ID instance cílového objektu JS.

Návraty

Reprezentace výsledku ve formátu JSON

Platí pro