Compartilhar via


PTextReader.ReadToEnd Method

Definition

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

public:
 override System::String ^ ReadToEnd();
public override string ReadToEnd ();
override this.ReadToEnd : unit -> string
Public Overrides Function ReadToEnd () As String

Returns

A string containing all characters from the current position to the end of the TextReader.

Exceptions

The number of characters in the next line is larger than MaxValue

An I/O error occurs.

There is insufficient memory to allocate a buffer for the returned string.

Applies to