Freigeben über


JSInProcessRuntime.InvokeJS Methode

Definition

Überlädt

Name Beschreibung
InvokeJS(JSInvocationInfo)

Führt einen synchronen Funktionsaufruf aus.

InvokeJS(String, String)

Führt einen synchronen Funktionsaufruf aus.

InvokeJS(String, String, JSCallResultType, Int64)

Führt einen synchronen Funktionsaufruf mit dem Aufruftyp FunctionCallaus. Verwenden Sie für weitere Konfigurationsoptionen die Überladung InvokeJS(JSInvocationInfo).

InvokeJS(JSInvocationInfo)

Quelle:
JSInProcessRuntime.cs

Führt einen synchronen Funktionsaufruf aus.

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

Parameter

invocationInfo
JSInvocationInfo

Konfiguration des Interoperabilitätsaufrufs.

Gibt zurück

Eine JSON-Darstellung des Ergebnisses.

Gilt für:

InvokeJS(String, String)

Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs

Führt einen synchronen Funktionsaufruf aus.

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

Parameter

identifier
String

Der Bezeichner für die Funktion, die aufgerufen werden soll.

argsJson
String

Eine JSON-Darstellung der Argumente.

Gibt zurück

Eine JSON-Darstellung des Ergebnisses.

Gilt für:

InvokeJS(String, String, JSCallResultType, Int64)

Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs
Quelle:
JSInProcessRuntime.cs

Führt einen synchronen Funktionsaufruf mit dem Aufruftyp FunctionCallaus. Verwenden Sie für weitere Konfigurationsoptionen die Überladung 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

Parameter

identifier
String

Der Bezeichner für die Funktion, die aufgerufen werden soll.

argsJson
String

Eine JSON-Darstellung der Argumente.

resultType
JSCallResultType

Der Vom Aufruf erwartete Ergebnistyp.

targetInstanceId
Int64

Die Instanz-ID des JS-Zielobjekts.

Gibt zurück

Eine JSON-Darstellung des Ergebnisses.

Gilt für: