Udostępnij przez


DotNetDispatcher.Invoke(JSRuntime, DotNetInvocationInfo, String) Metoda

Definicja

Odbiera wywołanie z pliku JS do platformy .NET, lokalizowanie i wywoływanie określonej metody.

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

Parametry

jsRuntime
JSRuntime

Element JSRuntime.

invocationInfo
DotNetInvocationInfo

Element DotNetInvocationInfo.

argsJson
String

Reprezentacja parametrów w formacie JSON.

Zwraca

Reprezentacja JSON wartości zwracanej lub null.

Dotyczy