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
'宣言
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.