TextWriter.WriteLine Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes a line terminator to the text stream.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| ObjectDisposedException | The TextWriter is closed. |
| IOException | An I/O error occurs. |
The default line terminator is a carriage return followed by a line feed ("\r\n"), but this value can be changed using the NewLine property.
Show: