Mono Class Library: System.IO.Stream Overview | Members

System.IO.Stream.WriteByte Method

Writes a byte to the current position in the stream and advances the position within the stream by one byte.

public virtual void WriteByte (byte value)

Parameters

value
The byte to write to the stream.

Exceptions

TypeReason
System.IO.IOExceptionAn I/O error has occurred.
NotSupportedExceptionThe stream does not support writing.
ObjectDisposedExceptionThe stream is closed.

Remarks

Note: Use the Stream.CanWrite property to determine whether the current instance supports writing.

Operation
As described above.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0