TextWriter.WriteLine Method (Object)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes the text representation of an object by calling ToString on this object, followed by a line terminator to the text stream.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- value
- Type: System.Object
The object to write. If value is null, only the line termination characters are written.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The TextWriter is closed. |
| IOException | An I/O error occurs. |
Show: