Writes a byte to the current position in the stream and advances the position within the stream by one byte.
Namespace:
Contracts
Assembly: Contracts (in Contracts.dll)
Assembly: Contracts (in Contracts.dll)
Exception type | Condition |
---|---|
An I/O error occurs. |
|
Methods were called after the stream was closed. |
|
The stream does not support writing, or the stream is already closed. |