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 Basic | Managed 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

Exception | Condition
--- | ---
ArgumentNullException | Raised when buffer is null.
InvalidOperationException | Raised when there already is pending read operation.
LineSizeExceededException | Raised when maximum allowed line size has exceeded.

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