TextWriter.WriteLine Method (Object)

May 11, 2014

Writes the text representation of an object by calling ToString on this object, followed by a line terminator to the text stream.

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

public virtual void WriteLine(
	Object value
)

Parameters

value
Type: System.Object
The object to write. If value is null, only the line termination characters are written.

ExceptionCondition
ObjectDisposedException

The TextWriter is closed.

IOException

An I/O error occurs.

This version of WriteLine is equivalent to Write.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft