LumiSoft Mail Server User API
ReadLine Method (buffer, exceededAction)
Namespaces > LumiSoft.Net.IO > StreamHelper > ReadLine(Byte[](), SizeExceededAction)
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,
	SizeExceededAction exceededAction
)
Public Function ReadLine ( _
	buffer As Byte(), _
	exceededAction As SizeExceededAction _
) As Integer
public:
int ReadLine (
	array<unsigned char>^ buffer, 
	SizeExceededAction exceededAction
)
Parameters
buffer (Byte[]())
Buffer where to store line data.
exceededAction (SizeExceededAction)
Specifies how this method behaves when maximum line size exceeded.
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)