Click or drag to resize
StreamWriteByte Method
Writes a byte to the current position in the stream and advances the position within the stream by one byte.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void WriteByte(
	byte value
)

Parameters

value
Type: SystemByte
The byte to write to the stream.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
NotSupportedExceptionThe stream does not support writing, or the stream is already closed.
ObjectDisposedExceptionMethods were called after the stream was closed.
See Also