System.IO.TextReader.ReadToEndAsync Method

Reads all characters from the current position to the end of the text reader asynchronously and returns them as one string.

Syntax

public virtual System.Threading.Tasks.Task<string> ReadToEndAsync ()

Returns

A task that represents the asynchronous read operation. The value of the TResult parameter contains a string with the characters from the current position to the end of the text reader.

Remarks

The System.IO.TextReader class is an abstract class. Therefore, you do not instantiate it in your code. For an example of using the TextReader.ReadToEndAsync method, see the StreamReader.ReadToEndAsync method.

Requirements

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