PowerTCP Mail for .NET
ReadToCount Method




The byte array used to store the received data.
The position in the buffer to store the data.
The number of byte to read.
Read until count bytes are read, an exception is thrown, or the connection is closed.
Syntax
Public Function ReadToCount( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Data
Dim instance As TcpBase
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Data
 
value = instance.ReadToCount(buffer, offset, count)
public Data ReadToCount( 
   byte[] buffer,
   int offset,
   int count
)
public: Data* ReadToCount( 
   byte[]* buffer,
   int offset,
   int count
) 
public:
Data^ ReadToCount( 
   array<byte>^ buffer,
   int offset,
   int count
) 

Parameters

buffer
The byte array used to store the received data.
offset
The position in the buffer to store the data.
count
The number of byte to read.

Return Value

A Data object encapsulating the received data.
Exceptions
ExceptionDescription
DataExceptionCount bytes could not be read. The DataException.DataRead property contains any data received before the failure occurred.
Remarks
If a DataException is thrown, the DataException.DataRead property contains any data received prior to the exception.
See Also

Reference

TcpBase Class
TcpBase Members


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic