Bahasa

JSInProcessRuntime.InvokeJS Metode

Definisi

Overload

Nama Deskripsi
InvokeJS(JSInvocationInfo)

Melakukan pemanggilan fungsi sinkron.

InvokeJS(String, String)

Melakukan pemanggilan fungsi sinkron.

InvokeJS(String, String, JSCallResultType, Int64)

Melakukan pemanggilan fungsi sinkron dengan jenis FunctionCallpanggilan . Untuk opsi konfigurasi lainnya, gunakan kelebihan beban InvokeJS(JSInvocationInfo).

InvokeJS(JSInvocationInfo)

Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs

Melakukan pemanggilan fungsi sinkron.

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

Konfigurasi panggilan interop.

Mengembalikan

Representasi JSON dari hasil.

Berlaku untuk

InvokeJS(String, String)

Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs

Melakukan pemanggilan fungsi sinkron.

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

Pengidentifikasi untuk fungsi yang akan dipanggil.

argsJson
String

Representasi JSON dari argumen.

Mengembalikan

Representasi JSON dari hasil.

Berlaku untuk

InvokeJS(String, String, JSCallResultType, Int64)

Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs
Sumber:
JSInProcessRuntime.cs

Melakukan pemanggilan fungsi sinkron dengan jenis FunctionCallpanggilan . Untuk opsi konfigurasi lainnya, gunakan kelebihan beban 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

Pengidentifikasi untuk fungsi yang akan dipanggil.

argsJson
String

Representasi JSON dari argumen.

resultType
JSCallResultType

Jenis hasil yang diharapkan dari pemanggilan.

targetInstanceId
Int64

ID instans objek JS target.

Mengembalikan

Representasi JSON dari hasil.

Berlaku untuk