Condividi tramite


TextSnapshotToTextReader.ReadLine Method

Reads a line of characters from the current stream and returns the data as a string.

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

Syntax

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

Return Value

Type: String
The next line from the input stream, or nulla null reference (Nothing in Visual Basic) if all characters have been read.

Exceptions

Exception Condition
ObjectDisposedException

The reader is closed.

.NET Framework Security

See Also

Reference

TextSnapshotToTextReader Class

Microsoft.VisualStudio.Text Namespace