LumiSoft Mail Server User API
ReadLine Method (buffer)
Namespaces > LumiSoft.Net.IO > StreamHelper > ReadLine(Byte[]())
Reads line from source stream and stores to specified buffer. This method accepts LF or CRLF lines.
Syntax
C#Visual BasicManaged C++
public int ReadLine (
	byte[] buffer
)
Public Function ReadLine ( _
	buffer As Byte() _
) As Integer
public:
int ReadLine (
	array<unsigned char>^ buffer
)
Parameters
buffer (Byte[]())
Buffer where to store line data.
Return Value
Returns number of bytes stored to buffer, returns -1 if end of stream reached and no more data.
Exceptions
ExceptionCondition
ArgumentNullExceptionRaised when buffer is null.
InvalidOperationExceptionRaised when there already is pending read operation.
LineSizeExceededExceptionRaised when maximum allowed line size has exceeded.

Assembly: LumiSoft.Net Version: 2.0.2636.18419 (Module: LumiSoft.Net)