Freigeben über


TextSnapshotToTextReader.ReadToEnd Method

Reads all the characters from the current position to the end of the reader and returns them as a string.

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

Syntax

'Declaration
Public Overrides Function ReadToEnd As String
public override string ReadToEnd()
public:
virtual String^ ReadToEnd() override
abstract ReadToEnd : unit -> string  
override ReadToEnd : unit -> string
public override function ReadToEnd() : String

Return Value

Type: String
A string containing all the characters from the current position to the end of the reader.

Exceptions

Exception Condition
ObjectDisposedException

The reader is closed.

.NET Framework Security

See Also

Reference

TextSnapshotToTextReader Class

Microsoft.VisualStudio.Text Namespace