LumiSoft Mail Server User API
ReadLine Method (encoding)
Namespaces > LumiSoft.Net.IO > StreamHelper > ReadLine(Encoding)
Reads line from source stream.
Syntax

C# | Visual Basic | Managed C++

    public string ReadLine (
    	Encoding encoding
    )

    Public Function ReadLine ( _
    	encoding As Encoding _
    ) As String

    public:
    String^ ReadLine (
    	Encoding^ encoding
    )

Parameters

encoding (Encoding)
  Encoding to use to decode line.

Return Value
Returns readed line with specified encoding or null if end of stream reached and no more data.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Raised when encoding 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)