Udostępnij za pośrednictwem


WebAssemblyJSRuntime.InvokeJS Metoda

Definicja

Przeciążenia

Nazwa Opis
InvokeJS(JSInvocationInfo)

Wykonuje wywołanie funkcji synchronicznej.

InvokeJS(String, String)

Wykonuje wywołanie funkcji synchronicznej.

InvokeJS(String, String, JSCallResultType, Int64)

Wykonuje wywołanie funkcji synchronicznej z typem FunctionCallwywołania . Aby uzyskać więcej opcji konfiguracji, użyj przeciążenia InvokeJS(JSInvocationInfo).

InvokeJS(JSInvocationInfo)

Źródło:
WebAssemblyJSRuntime.cs

Wykonuje wywołanie funkcji synchronicznej.

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

Konfiguracja połączenia międzyoperacowego.

Zwraca

Reprezentacja wyniku w formacie JSON.

Dotyczy

InvokeJS(String, String)

Źródło:
WebAssemblyJSRuntime.cs

Wykonuje wywołanie funkcji synchronicznej.

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

Identyfikator funkcji do wywołania.

argsJson
String

Reprezentacja JSON argumentów.

Zwraca

Reprezentacja wyniku w formacie JSON.

Dotyczy

InvokeJS(String, String, JSCallResultType, Int64)

Źródło:
WebAssemblyJSRuntime.cs
Źródło:
WebAssemblyJSRuntime.cs
Źródło:
WebAssemblyJSRuntime.cs
Źródło:
WebAssemblyJSRuntime.cs
Źródło:
WebAssemblyJSRuntime.cs
Źródło:
WebAssemblyJSRuntime.cs

Wykonuje wywołanie funkcji synchronicznej z typem FunctionCallwywołania . Aby uzyskać więcej opcji konfiguracji, użyj przeciążenia 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

Identyfikator funkcji do wywołania.

argsJson
String

Reprezentacja JSON argumentów.

resultType
JSCallResultType

Typ wyniku oczekiwany z wywołania.

targetInstanceId
Int64

Identyfikator wystąpienia docelowego obiektu JS.

Zwraca

Reprezentacja wyniku w formacie JSON.

Dotyczy