WebSocketTransport.ReceiveAsync(Byte[], Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
调用以接收来自有线传输的数据。
public System.Threading.Tasks.Task<int> ReceiveAsync(byte[] buffer, int offset, int count);
abstract member ReceiveAsync : byte[] * int * int -> System.Threading.Tasks.Task<int>
override this.ReceiveAsync : byte[] * int * int -> System.Threading.Tasks.Task<int>
Public Function ReceiveAsync (buffer As Byte(), offset As Integer, count As Integer) As Task(Of Integer)
参数
- buffer
- Byte[]
要接收数据的缓冲区。
- offset
- Int32
缓冲区中要开始写入的位置。
- count
- Int32
要写入缓冲区的最大字节数。
返回
写入缓冲区的字节数。