Partager via


JSInProcessRuntime.InvokeJS Méthode

Définition

Surcharges

InvokeJS(String, String)

Effectue un appel de fonction synchrone.

InvokeJS(String, String, JSCallResultType, Int64)

Effectue un appel de fonction synchrone.

InvokeJS(String, String)

Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs

Effectue un appel de fonction synchrone.

protected:
 abstract System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected:
 virtual System::String ^ InvokeJS(System::String ^ identifier, System::String ^ argsJson);
protected abstract string InvokeJS (string identifier, string argsJson);
protected virtual string? InvokeJS (string identifier, string? argsJson);
abstract member InvokeJS : string * string -> string
abstract member InvokeJS : string * string -> string
override this.InvokeJS : string * string -> string
Protected MustOverride Function InvokeJS (identifier As String, argsJson As String) As String
Protected Overridable Function InvokeJS (identifier As String, argsJson As String) As String

Paramètres

identifier
String

Identificateur de la fonction à appeler.

argsJson
String

Représentation JSON des arguments.

Retours

Représentation JSON du résultat.

S’applique à

InvokeJS(String, String, JSCallResultType, Int64)

Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs
Source:
JSInProcessRuntime.cs

Effectue un appel de fonction synchrone.

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

Paramètres

identifier
String

Identificateur de la fonction à appeler.

argsJson
String

Représentation JSON des arguments.

resultType
JSCallResultType

Type de résultat attendu de l’appel.

targetInstanceId
Int64

ID instance de l’objet JS cible.

Retours

Représentation JSON du résultat.

S’applique à