BinaryWriter.Write Method (Boolean)

July 28, 2014

Writes a one-byte Boolean value to the current stream, with 0 representing false and 1 representing true.

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

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

Parameters

value
Type: System.Boolean
The Boolean value to write (0 or 1).

ExceptionCondition
IOException

An I/O error occurs.

ObjectDisposedException

The stream is closed.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft