WebAssemblyJSRuntime.InvokeJS Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
InvokeJS(String, String) |
Performs a synchronous function invocation. |
InvokeJS(String, String, JSCallResultType, Int64) |
Performs a synchronous function invocation. |
InvokeJS(String, String)
- Source:
- WebAssemblyJSRuntime.cs
Performs a synchronous function invocation.
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
Parameters
- identifier
- String
The identifier for the function to invoke.
- argsJson
- String
A JSON representation of the arguments.
Returns
A JSON representation of the result.
Applies to
InvokeJS(String, String, JSCallResultType, Int64)
- Source:
- WebAssemblyJSRuntime.cs
- Source:
- WebAssemblyJSRuntime.cs
- Source:
- WebAssemblyJSRuntime.cs
- Source:
- WebAssemblyJSRuntime.cs
- Source:
- WebAssemblyJSRuntime.cs
Performs a synchronous function invocation.
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
Parameters
- identifier
- String
The identifier for the function to invoke.
- argsJson
- String
A JSON representation of the arguments.
- resultType
- JSCallResultType
The type of result expected from the invocation.
- targetInstanceId
- Int64
The instance ID of the target JS object.
Returns
A JSON representation of the result.