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:
Contracts
Assembly: Contracts (in Contracts.dll)
Assembly: Contracts (in Contracts.dll)
Public Overrides Function ReadByte() As Integer
This language is not supported or no code example is available.
public override int ReadByte()
This language is not supported or no code example is available.
public:
int ReadByte()
This language is not supported or no code example is available.
Return Value
Type: intThe unsigned byte cast to an Int32, or -1 if at the end of the stream.
Exception type | Condition |
---|---|
Methods were called after the stream was closed. |
|
The stream does not support reading. |