Click or drag to resize
StreamReadByte Method
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual int ReadByte()

Return Value

Type: Int32
The unsigned byte cast to an Int32, or -1 if at the end of the stream.
Exceptions
ExceptionCondition
NotSupportedExceptionThe stream does not support reading.
ObjectDisposedExceptionMethods were called after the stream was closed.
See Also