PTextReader.Peek Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream.
public:
override int Peek();
public override int Peek ();
override this.Peek : unit -> int
Public Overrides Function Peek () As Integer
Returns
The next character to be read, or -1 if no more characters are available or the stream does not support seeking.
Exceptions
An I/O error occurs.
The TextReader is closed.