Writes a byte to the current position in the stream and advances the position within the stream by one byte.
Namespace: System.IOAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public virtual void WriteByte(
byte value
)
Parameters
- value
- Type: SystemByte
The byte to write to the stream.
Exceptions Exception | Condition |
---|
IOException | An I/O error occurs. |
NotSupportedException | The stream does not support writing, or the stream is already closed. |
ObjectDisposedException | Methods were called after the stream was closed. |
See Also