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.ReadLine

Reads a line of characters from the current stream and returns the data as a string.

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

Return Value

The next line from the input stream, or null if the end of the input stream has been reached.

Exceptions

Exception Type Condition
IOException An I/O error occurs or the input stream is null.

Remarks

A line is defined as a sequence of characters followed by a line feed ("\n") or a carriage return immediately followed by a line feed ("\r\n"). The string that is returned does not contain the terminating carriage return or line feed. The returned value is null if the end of the input stream has been reached.

This method overrides ReadLine.

See Also

StreamReader Class | StreamReader Members | System.IO Namespace