BinaryWriter.Write Method (Boolean)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes a one-byte Boolean value to the current stream, with 0 representing false and 1 representing true.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- value
- Type: System.Boolean
The Boolean value to write (0 or 1).
| Exception | Condition |
|---|---|
| IOException | An I/O error occurs. |
| ObjectDisposedException | The stream is closed. |
Show: