Condividi tramite


WebAssemblyJSRuntime.InvokeJS Metodo

Definizione

Overload

Nome Descrizione
InvokeJS(JSInvocationInfo)

Esegue una chiamata a una funzione sincrona.

InvokeJS(String, String)

Esegue una chiamata a una funzione sincrona.

InvokeJS(String, String, JSCallResultType, Int64)

Esegue una chiamata a una funzione sincrona con il tipo di FunctionCallchiamata . Per altre opzioni di configurazione, usare l'overload InvokeJS(JSInvocationInfo).

InvokeJS(JSInvocationInfo)

Origine:
WebAssemblyJSRuntime.cs

Esegue una chiamata a una funzione sincrona.

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

Parametri

invocationInfo
JSInvocationInfo

Configurazione della chiamata di interoperabilità.

Restituisce

Rappresentazione JSON del risultato.

Si applica a

InvokeJS(String, String)

Origine:
WebAssemblyJSRuntime.cs

Esegue una chiamata a una funzione sincrona.

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

Parametri

identifier
String

Identificatore della funzione da richiamare.

argsJson
String

Rappresentazione JSON degli argomenti.

Restituisce

Rappresentazione JSON del risultato.

Si applica a

InvokeJS(String, String, JSCallResultType, Int64)

Origine:
WebAssemblyJSRuntime.cs
Origine:
WebAssemblyJSRuntime.cs
Origine:
WebAssemblyJSRuntime.cs
Origine:
WebAssemblyJSRuntime.cs
Origine:
WebAssemblyJSRuntime.cs
Origine:
WebAssemblyJSRuntime.cs

Esegue una chiamata a una funzione sincrona con il tipo di FunctionCallchiamata . Per altre opzioni di configurazione, usare l'overload 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

Parametri

identifier
String

Identificatore della funzione da richiamare.

argsJson
String

Rappresentazione JSON degli argomenti.

resultType
JSCallResultType

Tipo di risultato previsto dalla chiamata.

targetInstanceId
Int64

ID istanza dell'oggetto JS di destinazione.

Restituisce

Rappresentazione JSON del risultato.

Si applica a