Read Method
Collapse the table of content
Expand the table of content

TextReader.Read Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Reads the next character from the input stream and advances the character position by one character.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

public virtual int Read()

Return Value

Type: System.Int32
The next character from the input stream, or -1 if no more characters are available. The default implementation returns -1.

ExceptionCondition
ObjectDisposedException

The TextReader is closed.

IOException

An I/O error occurs.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft