Compartilhar via


DotNetDispatcher.Invoke(JSRuntime, DotNetInvocationInfo, String) Método

Definição

Recebe uma chamada do JS para o .NET, localizando e invocando o método especificado.

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

Parâmetros

jsRuntime
JSRuntime

O JSRuntime.

argsJson
String

Uma representação JSON dos parâmetros.

Retornos

Uma representação JSON do valor retornado ou nulo.

Aplica-se a