System.IO.TextWriter.WriteLineAsync Method

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

Syntax

public virtual System.Threading.Tasks.Task WriteLineAsync (string value)

Parameters

value
The string to write. If the value is null, only a line terminator is written.

Returns

A task that represents the asynchronous write operation.

Remarks

The line terminator is defined by the TextWriter.CoreNewLine field.

The System.IO.TextWriter class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the TextWriter.WriteLineAsync(string) method, see the StreamWriter.WriteLineAsync(string) method.

Requirements

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