DotNetDispatcher.Invoke(JSRuntime, DotNetInvocationInfo, String) 方法

定义

接收从 JS 到 .NET 的调用,查找并调用指定的方法。

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

参数

jsRuntime
JSRuntime

JSRuntime

argsJson
String

参数的 JSON 表示形式。

返回

返回值的 JSON 表示形式,或 null。

适用于