DotNetDispatcher.Invoke(JSRuntime, DotNetInvocationInfo, String) Method

Definition

Receives a call from JS to .NET, locating and invoking the specified method.

public:
 static System::String ^ Invoke(Microsoft::JSInterop::JSRuntime ^ jsRuntime, Microsoft::JSInterop::Infrastructure::DotNetInvocationInfo % invocationInfo, System::String ^ argsJson);
public static string Invoke (Microsoft.JSInterop.JSRuntime jsRuntime, in Microsoft.JSInterop.Infrastructure.DotNetInvocationInfo invocationInfo, string argsJson);
public static string? Invoke (Microsoft.JSInterop.JSRuntime jsRuntime, in Microsoft.JSInterop.Infrastructure.DotNetInvocationInfo invocationInfo, string argsJson);
static member Invoke : Microsoft.JSInterop.JSRuntime * DotNetInvocationInfo * string -> string
Public Shared Function Invoke (jsRuntime As JSRuntime, ByRef invocationInfo As DotNetInvocationInfo, argsJson As String) As String

Parameters

jsRuntime
JSRuntime

The JSRuntime.

argsJson
String

A JSON representation of the parameters.

Returns

String

A JSON representation of the return value, or null.

Applies to