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.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
Public Overridable Sub WriteLine ( _
value As Object _
)
public virtual void WriteLine(
Object value
)
Parameters
- value
Type: System..::.Object
The object to write. If value is nullNothingnullptra null reference (Nothing in Visual Basic), only the line termination characters are written.
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | The TextWriter is closed. |
IOException | An I/O error occurs. |
Remarks
This version of WriteLine is equivalent to Write.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone