System.IO.TextWriter.Write Method

Writes the text representation of a Boolean value to the text string or stream.

Syntax

public virtual void Write (bool value)

Parameters

value
The Boolean value to write.

Exceptions

TypeReason
System.IO.IOExceptionAn I/O error occurred.

Remarks

The text representation of the specified value is produced by calling the bool.ToString method.

This method outputs either bool.TrueString or bool.FalseString.

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0