'Declaration
Public Function ReadTaskAsync( _
ByVal () As Byte, _
ByVal As Integer, _
ByVal As Integer _
) As Task(Of Data)
'Usage
Dim instance As TcpBase
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Task(Of Data)
value = instance.ReadTaskAsync(buffer, offset, count)
public Task<Data> ReadTaskAsync(
byte[] ,
int ,
int
)
public: Task<Data*>* ReadTaskAsync(
byte[]* ,
int ,
int
)
public:
Task<Data^>^ ReadTaskAsync(
array<byte>^ ,
int ,
int
)
Parameters
- buffer
- The byte array used to store the received data.
- offset
- The position in the buffer to store the data.
- count
- The maximum number of bytes to receive.
Return Value
A task that represents the asynchronous read operation. The value of the TResult parameter contains the
Data object encapsulating the received data (null if the socket is closed).