Freigeben über


DotNetDispatcher.Invoke(JSRuntime, DotNetInvocationInfo, String) Methode

Definition

Empfängt einen Aufruf von JS an .NET, der die angegebene Methode auffindt und aufruft.

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

Parameter

jsRuntime
JSRuntime

Die JSRuntime.

argsJson
String

Eine JSON-Darstellung der Parameter.

Gibt zurück

Eine JSON-Darstellung des Rückgabewerts oder NULL.

Gilt für: