Share via


JSInProcessRuntime.InvokeJS Method

Definition

Overloads

InvokeJS(String, String)

Performs a synchronous function invocation.

InvokeJS(String, String, JSCallResultType, Int64)

Performs a synchronous function invocation.

InvokeJS(String, String)

Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs

Performs a synchronous function invocation.

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

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:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs

Performs a synchronous function invocation.

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

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.

Applies to