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!

TextReader.Peek

Returns the next available character without actually reading it from the input stream.

[Visual Basic]
Overridable Public Function Peek() As Integer
[C#]
public virtual int Peek();
[C++]
public: virtual int Peek();
[JScript]
public function Peek() : int;

Return Value

The next character to be read, or-1 if no more characters are available.

Exceptions

Exception Type Condition
IOException An I/O error occurs.

Remarks

The current position of the TextReader is not changed by this operation. The returned value is-1 if no more characters are available. This default method simply returns-1.

See Also

TextReader Class | TextReader Members | System.IO Namespace