PTextReader Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parameterized model that simulates arbitrary text reader
public ref class PTextReader sealed : System::IO::TextReader
[__Instrument]
[System.Serializable]
public sealed class PTextReader : System.IO.TextReader
[<__Instrument>]
[<System.Serializable>]
type PTextReader = class
inherit TextReader
Public NotInheritable Class PTextReader
Inherits TextReader
- Inheritance
-
PTextReader
- Attributes
-
__InstrumentAttribute SerializableAttribute
Constructors
PTextReader() |
Initializes a new instance of the PTextReader class. |
Properties
Disposed |
Gets a value indicating whether this PTextReader is disposed. |
Touched |
Gets a value indicating whether this PTextReader is touched. |
Methods
Close() |
Closes the TextReader and releases any system resources associated with the TextReader. |
Peek() |
Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream. |
Read() |
Reads the next character from the input stream and advances the character position by one character. |
Read(Char[], Int32, Int32) |
Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index. |
ReadBlock(Char[], Int32, Int32) |
Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index. |
ReadLine() |
Reads a line of characters from the current stream and returns the data as a string. |
ReadToEnd() |
Reads all characters from the current position to the end of the TextReader and returns them as one string. |