TextWriter.WriteLine Method (Boolean)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes the text representation of a Boolean followed by a line terminator to the text stream.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- value
- Type: System.Boolean
The Boolean to write.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The TextWriter is closed. |
| IOException | An I/O error occurs. |
The text representation of the specified value is produced by calling ToString.
This method outputs either Boolean.TrueString or Boolean.FalseString.
Show: