Parameters
- count
- The number of characters to read.
Return Value
A character array containing data read from the underlying stream. This might be less than the number of characters requested if the end of the stream is reached.
Exception | Description |
---|---|
System.ArgumentException | The number of decoded characters to read is greater than count. This can happen if a Unicode decoder returns fallback characters or a surrogate pair. |
System.ObjectDisposedException | The stream is closed. |
System.IO.IOException | An I/O error occurs. |
System.ArgumentOutOfRangeException | count is negative. |