Back to product page

ReceiveData method


Reads binary data received from the server.

Type

Byte[]

Syntax

  • C#
  • VB.NET
public Byte[] ReceiveData();
The ReceiveData() syntax has these parts:
Return valueNew byte array with received data.

public Byte[] ReceiveData(Int32 BytesCount);
The ReceiveData(BytesCount) syntax has these parts:
BytesCountMaximum number of bytes that should be read.
Return valueNew byte array with received data.

public Function ReceiveData() As Byte[]
The ReceiveData() syntax has these parts:
Return valueNew byte array with received data.

public Function ReceiveData(ByVal BytesCount As Int32) As Byte[]
The ReceiveData(BytesCount) syntax has these parts:
BytesCountMaximum number of bytes that should be read.
Return valueNew byte array with received data.

Remarks

ReceiveData method is used to get data received from server represented as byte array, and store it to your program. It can be used only after DataReceived event is fired. DataReceived event will provide information about total number of bytes received and waiting to be read by your program. You can use that value for BytesCount parameter.

If BytesCount is not specified, Receive method will returned everything received from server, as byte array.

Platforms

Windows