Compartilhar via


WebAssemblyJSRuntime.InvokeJS Método

Definição

Sobrecargas

Nome Description
InvokeJS(JSInvocationInfo)

Executa uma invocação de função síncrona.

InvokeJS(String, String)

Executa uma invocação de função síncrona.

InvokeJS(String, String, JSCallResultType, Int64)

Executa uma invocação de função síncrona com o tipo FunctionCallde chamada. Para obter mais opções de configuração, use a sobrecarga InvokeJS(JSInvocationInfo).

InvokeJS(JSInvocationInfo)

Origem:
WebAssemblyJSRuntime.cs

Executa uma invocação de função síncrona.

protected override string InvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo invocationInfo);
override this.InvokeJS : JSInvocationInfo -> string
Protected Overrides Function InvokeJS (invocationInfo As JSInvocationInfo) As String

Parâmetros

invocationInfo
JSInvocationInfo

Configuração da chamada de interoperabilidade.

Retornos

Uma representação JSON do resultado.

Aplica-se a

InvokeJS(String, String)

Origem:
WebAssemblyJSRuntime.cs

Executa uma invocação de função síncrona.

protected:
 override System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected override string InvokeJS(string identifier, string argsJson);
override this.InvokeJS : string * string -> string
Protected Overrides Function InvokeJS (identifier As String, argsJson As String) As String

Parâmetros

identifier
String

O identificador para a função a ser invocada.

argsJson
String

Uma representação JSON dos argumentos.

Retornos

Uma representação JSON do resultado.

Aplica-se a

InvokeJS(String, String, JSCallResultType, Int64)

Origem:
WebAssemblyJSRuntime.cs
Origem:
WebAssemblyJSRuntime.cs
Origem:
WebAssemblyJSRuntime.cs
Origem:
WebAssemblyJSRuntime.cs
Origem:
WebAssemblyJSRuntime.cs
Origem:
WebAssemblyJSRuntime.cs

Executa uma invocação de função síncrona com o tipo FunctionCallde chamada. Para obter mais opções de configuração, use a sobrecarga InvokeJS(JSInvocationInfo).

protected override string InvokeJS(string identifier, string? argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId);
protected override string InvokeJS(string identifier, string argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId);
override this.InvokeJS : string * string * Microsoft.JSInterop.JSCallResultType * int64 -> string
Protected Overrides Function InvokeJS (identifier As String, argsJson As String, resultType As JSCallResultType, targetInstanceId As Long) As String

Parâmetros

identifier
String

O identificador para a função a ser invocada.

argsJson
String

Uma representação JSON dos argumentos.

resultType
JSCallResultType

O tipo de resultado esperado da invocação.

targetInstanceId
Int64

A ID da instância do objeto JS de destino.

Retornos

Uma representação JSON do resultado.

Aplica-se a