Bagikan melalui


DotNetDispatcher.Invoke(JSRuntime, DotNetInvocationInfo, String) Metode

Definisi

Menerima panggilan dari JS ke .NET, menemukan dan memanggil metode yang ditentukan.

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

JSRuntime.

argsJson
String

Representasi JSON dari parameter.

Mengembalikan

Representasi JSON dari nilai yang dikembalikan, atau null.

Berlaku untuk