TextReader: ReadBlock |
Reads a maximum of Count characters from the current stream, and writes the data to Chars, beginning at Index.
Public Function ReadBlock( ByRef Chars ( ) As Integer, ByVal Index As Long, ByVal Count As Long ) As Long
Characters are encoded within the stream. A single character may require more that one byte to represent it. This may result in fewer characters read than there are bytes in the stream.
Exception | Condition |
---|---|
ArgumentNullException | Chars is uninitialized. |
ArgumentException | The Char length minus Index is less than Count. |
ArgumentOutOfRangeException | Index or Count is negative. |
ObjectDisposedException | The TextReader is closed. |