Windows Dev Center

BinaryWriter.Write Method (Byte)

Writes an unsigned byte to the current stream and advances the stream position by one byte.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Overridable Sub Write ( _
	value As Byte _
)

Parameters

value
Type: System.Byte
The unsigned byte to write.

ExceptionCondition
IOException

An I/O error occurs.

ObjectDisposedException

The stream is closed.

Because of data formatting conflicts, using this method with the following encodings is not recommended:

  • UTF-7

  • ISO-2022-JP

  • ISCII

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft