Export (0) Print
Expand All

StreamReader Methods

The StreamReader type exposes the following members.

  Name Description
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Close When it is called by trusted applications, closes the StreamReader object and the underlying stream, and releases any system resources associated with the reader. (Overrides TextReader.Close().)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 DiscardBufferedData Clears the internal buffer.
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Dispose() Releases all resources used by the TextReader object. (Inherited from TextReader.)
Protected method Supported by Silverlight for Windows Phone Supported by Xbox 360 Dispose(Boolean) Closes the underlying stream, releases the unmanaged resources used by the StreamReader, and optionally releases the managed resources. (Overrides TextReader.Dispose(Boolean).)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by Silverlight for Windows Phone Supported by Xbox 360 Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by Silverlight for Windows Phone Supported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Peek When it is called by trusted application, returns the next available character but does not consume it. (Overrides TextReader.Peek().)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Read() When it is called by trusted applications, reads the next character from the input stream and advances the character position by one character. (Overrides TextReader.Read().)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 Read(Char[], Int32, Int32) When it is called by trusted applications, reads a maximum of count characters from the current stream into buffer, beginning at index. (Overrides TextReader.Read(Char[], Int32, Int32).)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 ReadBlock (Overrides TextReader.ReadBlock(Char[], Int32, Int32).)

In Silverlight for Windows Phone Windows Phone OS 7.1, this member is inherited from TextReader.ReadBlock(Char[], Int32, Int32).


In XNA Framework Xbox 360, this member is inherited from TextReader.ReadBlock(Char[], Int32, Int32).
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 ReadLine When it is called by trusted applications, reads a line of characters from the current stream and returns the data as a string. (Overrides TextReader.ReadLine().)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 ReadToEnd When it is called by trusted applications, reads the stream from the current position to the end of the stream. (Overrides TextReader.ReadToEnd().)
Public method Supported by Silverlight for Windows Phone Supported by Xbox 360 ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft