MemoryStream: WriteByte

WriteByte

Writes a single byte to the underlying stream.



 Public Sub WriteByte(
	  ByVal Value As Byte )

Parameters

Value
[ByVal] Byte. The byte to be written to the stream.

Remarks

Except for a MemoryStream constructed with a Byte() parameter, write operations at the end of a MemoryStream expand the MemoryStream.

Exceptions

ExceptionCondition
NotSupportedException The stream does not support writing. For additional information see CanWriter.
-or-
The current position is at the end of the stream, and the capacity cannot be modified.
ObjectDisposedExceptionThe current stream instance is closed.

See Also

Project CorLib Overview

Class MemoryStream Overview