Share via


TextSnapshotToTextReader.Read Method

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

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Overrides Function Read As Integer
public override int Read()
public:
virtual int Read() override
abstract Read : unit -> int 
override Read : unit -> int 
public override function Read() : int

Return Value

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

Exceptions

Exception Condition
ObjectDisposedException

The reader is closed.

.NET Framework Security

See Also

Reference

TextSnapshotToTextReader Class

Read Overload

Microsoft.VisualStudio.Text Namespace