LumiSoft Mail Server User API
ReadLine Method (encoding, exceededAction)
Namespaces > LumiSoft.Net.IO > StreamHelper > ReadLine(Encoding, SizeExceededAction)
Reads line from source stream.
Syntax
C#Visual BasicManaged C++
public string ReadLine (
	Encoding encoding,
	SizeExceededAction exceededAction
)
Public Function ReadLine ( _
	encoding As Encoding, _
	exceededAction As SizeExceededAction _
) As String
public:
String^ ReadLine (
	Encoding^ encoding, 
	SizeExceededAction exceededAction
)
Parameters
encoding (Encoding)
Encoding to use to decode line.
exceededAction (SizeExceededAction)
Specifies how this method behaves when maximum line size exceeded.
Return Value
Returns readed line with specified encoding or null if end of stream reached and no more data.
Exceptions
ExceptionCondition
ArgumentNullExceptionRaised when encoding 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)