Sdílet prostřednictvím


JSInProcessRuntime.InvokeJS Metoda

Definice

Přetížení

InvokeJS(String, String)

Provede vyvolání synchronní funkce.

InvokeJS(String, String, JSCallResultType, Int64)

Provede vyvolání synchronní funkce.

InvokeJS(String, String)

Zdroj:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs

Provede vyvolání synchronní funkce.

protected:
 abstract System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected:
 virtual System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected abstract string InvokeJS (string identifier, string argsJson);
protected virtual string? InvokeJS (string identifier, string? argsJson);
abstract member InvokeJS : string * string -> string
abstract member InvokeJS : string * string -> string
override this.InvokeJS : string * string -> string
Protected MustOverride Function InvokeJS (identifier As String, argsJson As String) As String
Protected Overridable 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:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs
Zdroj:
JSInProcessRuntime.cs

Provede vyvolání synchronní funkce.

protected:
 abstract System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson, Microsoft::JSInterop::JSCallResultType resultType, long targetInstanceId);
protected abstract string? InvokeJS (string identifier, string? argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId);
abstract member InvokeJS : string * string * Microsoft.JSInterop.JSCallResultType * int64 -> string
Protected MustOverride 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