System.IO.TextWriter.WriteAsync Method

Writes a subarray of characters to the text string or stream asynchronously.

Syntax

public virtual System.Threading.Tasks.Task WriteAsync (char[] buffer, int index, int count)

Parameters

buffer
The character array to write data from.
index
The character position in the buffer at which to start retrieving data.
count
The number of characters to write.

Returns

A task that represents the asynchronous write operation.

Remarks

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.WriteAsync(Char[], int, int) method, see the StreamWriter.WriteAsync(Char[], int, int) method.

Requirements

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