WebAssemblyJSRuntime.InvokeJS Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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:
- WebAssemblyJSRuntime.cs
- Sumber:
- WebAssemblyJSRuntime.cs
Melakukan pemanggilan fungsi sinkron.
protected override string InvokeJS(in Microsoft.JSInterop.Infrastructure.JSInvocationInfo invocationInfo);
override this.InvokeJS : JSInvocationInfo -> string
Protected Overrides Function InvokeJS (invocationInfo As JSInvocationInfo) As String
Parameter
- invocationInfo
- JSInvocationInfo
Konfigurasi panggilan interop.
Mengembalikan
Representasi JSON dari hasil.
Berlaku untuk
InvokeJS(String, String)
- Sumber:
- WebAssemblyJSRuntime.cs
Melakukan pemanggilan fungsi sinkron.
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
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:
- WebAssemblyJSRuntime.cs
- Sumber:
- WebAssemblyJSRuntime.cs
- Sumber:
- WebAssemblyJSRuntime.cs
- Sumber:
- WebAssemblyJSRuntime.cs
- Sumber:
- WebAssemblyJSRuntime.cs
- Sumber:
- WebAssemblyJSRuntime.cs
- Sumber:
- WebAssemblyJSRuntime.cs
Melakukan pemanggilan fungsi sinkron dengan jenis FunctionCallpanggilan . Untuk opsi konfigurasi lainnya, gunakan kelebihan beban 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
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.