WebAssemblyJSRuntime.InvokeJS Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| InvokeJS(String, String) |
Provede synchronní vyvolání funkce. |
| InvokeJS(String, String, JSCallResultType, Int64) |
Provede synchronní vyvolání funkce. |
InvokeJS(String, String)
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ý 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)
Provede synchronní vyvolání funkce.
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ý 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