TextSnapshotToTextReader Class
Provides a TextReader facade over a text snapshot.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.IO.TextReader
Microsoft.VisualStudio.Text.TextSnapshotToTextReader
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public NotInheritable Class TextSnapshotToTextReader _
Inherits TextReader
public sealed class TextSnapshotToTextReader : TextReader
public ref class TextSnapshotToTextReader sealed : public TextReader
[<Sealed>]
type TextSnapshotToTextReader =
class
inherit TextReader
end
public final class TextSnapshotToTextReader extends TextReader
The TextSnapshotToTextReader type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TextSnapshotToTextReader | Initializes a new instance of TextSnapshotToTextReader with the specified text snapshot. |
Top
Methods
Name | Description | |
---|---|---|
Close | Closes the reader and releases associated resources. (Overrides TextReader.Close().) | |
CreateObjRef | Security Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) | |
Dispose | Releases all resources used by the TextReader object. (Inherited from TextReader.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetLifetimeService | Security Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitializeLifetimeService | Security Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) | |
Peek | Returns the next character without changing the state of the reader or the character source. (Overrides TextReader.Peek().) | |
Read() | Reads the next character from the input stream and advances the character position by one character. (Overrides TextReader.Read().) | |
Read(array<Char[], Int32, Int32) | Reads the specified number of characters from the current stream and writes the data to the buffer, beginning at the specified location. (Overrides TextReader.Read(array<Char[], Int32, Int32).) | |
ReadAsync | Reads a specified maximum number of characters from the current text reader asynchronously and writes the data to a buffer, beginning at the specified index. (Inherited from TextReader.) | |
ReadBlock | Reads a maximum of count characters from the current stream and writes the data to the buffer, beginning at index. (Overrides TextReader.ReadBlock(array<Char[], Int32, Int32).) | |
ReadBlockAsync | Reads a specified maximum number of characters from the current text reader asynchronously and writes the data to a buffer, beginning at the specified index. (Inherited from TextReader.) | |
ReadLine | Reads a line of characters from the current stream and returns the data as a string. (Overrides TextReader.ReadLine().) | |
ReadLineAsync | Reads a line of characters asynchronously and returns the data as a string. (Inherited from TextReader.) | |
ReadToEnd | Reads all the characters from the current position to the end of the reader and returns them as a string. (Overrides TextReader.ReadToEnd().) | |
ReadToEndAsync | Reads all characters from the current position to the end of the text reader asynchronously and returns them as one string. (Inherited from TextReader.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.