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)

Public Overrides Sub WriteByte( _ 
ByVal value As Byte
)
This language is not supported or no code example is available.
public override void WriteByte( 
byte value 
)
This language is not supported or no code example is available.
public:  
void WriteByte( 
Byte value 
)
This language is not supported or no code example is available.
public function WriteByte( 
value : byte 
);
This language is not supported or no code example is available.

Parameters

value
Type: byte

The byte to write to the stream.

Exception type Condition

IOException

An I/O error occurs.

ObjectDisposedException

Methods were called after the stream was closed.

NotSupportedException

The stream does not support writing, or the stream is already closed.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1