Reads line from source stream.
| C# | Visual Basic | Managed 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 )
- encoding (Encoding)
- Encoding to use to decode line.
- exceededAction (SizeExceededAction)
- Specifies how this method behaves when maximum line size exceeded.
Returns readed line with specified encoding or null if end of stream reached and no more data.
| 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)