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.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

Public Overridable Sub WriteLine
public virtual void WriteLine()

Exceptions

Exception Condition
ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

Remarks

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

TextWriter Class

WriteLine Overload

System.IO Namespace