DotNetDispatcher.ReceiveByteArray(JSRuntime, Int32, Byte[]) 方法

定义

接受从 JS 传输到 DotNet 的字节数组数据。

public static void ReceiveByteArray (Microsoft.JSInterop.JSRuntime jsRuntime, int id, byte[] data);
static member ReceiveByteArray : Microsoft.JSInterop.JSRuntime * int * byte[] -> unit
Public Shared Sub ReceiveByteArray (jsRuntime As JSRuntime, id As Integer, data As Byte())

参数

jsRuntime
JSRuntime

JSRuntime

id
Int32

要传输的字节数组的标识符。

data
Byte[]

要从 JS 传输的字节数组。

适用于