共用方式為


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。

適用於