Compartilhar via


JSInProcessRuntime.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:
JSInProcessRuntime.cs

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

protected virtual string? InvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo? invocationInfo);
abstract member InvokeJS : JSInvocationInfo -> string
override this.InvokeJS : JSInvocationInfo -> string
Protected Overridable 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:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs

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

protected:
 abstract System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected:
 virtual System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected virtual string? InvokeJS(string identifier, string? argsJson);
protected abstract string InvokeJS(string identifier, string argsJson);
abstract member InvokeJS : string * string -> string
override this.InvokeJS : string * string -> string
abstract member InvokeJS : string * string -> string
Protected Overridable Function InvokeJS (identifier As String, argsJson As String) As String
Protected MustOverride 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:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.cs
Origem:
JSInProcessRuntime.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:
 abstract System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson, Microsoft::JSInterop::JSCallResultType resultType, long targetInstanceId);
protected abstract string? InvokeJS(string identifier, string? argsJson, Microsoft.JSInterop.JSCallResultType resultType, long targetInstanceId);
abstract member InvokeJS : string * string * Microsoft.JSInterop.JSCallResultType * int64 -> string
Protected MustOverride 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