Export (0) Print
Expand All
0 out of 5 rated this helpful - Rate this topic

StreamReader Members

StreamReader overview

Public Constructors

public constructorStreamReader Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the StreamReader class for the specified stream.

Public Fields

public fieldstatic (Shared in Visual Basic)Null

Supported by the .NET Compact Framework.

A StreamReader around an empty stream.

Public Properties

public propertyBaseStream

Supported by the .NET Compact Framework.

Returns the underlying stream.
public propertyCurrentEncoding

Supported by the .NET Compact Framework.

Gets the current character encoding that the current StreamReader is using.

Public Methods

public methodClose

Supported by the .NET Compact Framework.

Overridden. Closes the StreamReader and the underlying stream and releases any system resources associated with the reader.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDiscardBufferedData

Supported by the .NET Compact Framework.

Allows a StreamReader to discard its current data.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodPeek

Supported by the .NET Compact Framework.

Overridden. Returns the next available character but does not consume it.
public methodRead

Supported by the .NET Compact Framework.

Overloaded. Overridden. Reads the next character or next set of characters from the input stream.
public methodReadBlock (inherited from TextReader)

Supported by the .NET Compact Framework.

Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index.
public methodReadLine

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Overridden. Reads the stream from the current position to the end of the stream.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodDispose

Supported by the .NET Compact Framework.

Overridden. Closes the underlying stream, releases the unmanaged resources used by the StreamReader, and optionally releases the managed resources.
protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

StreamReader Class | System.IO Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.