NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

StreamReader.ReadToEnd

Reads the stream from the current position to the end of the stream.

[Visual Basic]
Overrides Public Function ReadToEnd() As String
[C#]
public override string ReadToEnd();
[C++]
public: override String* ReadToEnd();
[JScript]
public override function ReadToEnd() : String;

Return Value

The entire stream as a string.

Exceptions

Exception Type Condition
IOException The stream is a null reference (in Visual Basic Nothing).

Remarks

For better performance, call Read (char[], int, int) with a buffer the same size as the StreamReader's internal buffer.

See Also

StreamReader Class | StreamReader Members | System.IO Namespace