This topic has not yet been rated - Rate this topic

TextWriter.WriteLine Method (String)

May 02, 2013

Writes a string followed by a line terminator to the text stream.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)
'Declaration
Public Overridable Sub WriteLine ( _
	value As String _
)

Parameters

value
Type: System.String
The string to write. If value is Nothing, 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.

The line terminator string is defined by the NewLine property.

This method does not search the specified String for individual newline characters (hexadecimal 0x000a) and replace them with NewLine.

Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.