WebAssemblyJSRuntime.InvokeJS Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
InvokeJS(String, String) |
Wykonuje wywołanie funkcji synchronicznej. |
InvokeJS(String, String, JSCallResultType, Int64) |
Wykonuje wywołanie funkcji synchronicznej. |
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
Wykonuje wywołanie funkcji synchronicznej.
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 oczekiwanego od wywołania.
- targetInstanceId
- Int64
Identyfikator wystąpienia docelowego obiektu JS.
Zwraca
Reprezentacja wyniku w formacie JSON.
Dotyczy
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla