Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Stream Members

Stream overview

Public Fields

public fieldstatic (Shared in Visual Basic)Null

Supported by the .NET Compact Framework.

A Stream with no backing store.

Public Properties

public propertyCanRead

Supported by the .NET Compact Framework.

When overridden in a derived class, gets a value indicating whether the current stream supports reading.
public propertyCanSeek

Supported by the .NET Compact Framework.

When overridden in a derived class, gets a value indicating whether the current stream supports seeking.
public propertyCanWrite

Supported by the .NET Compact Framework.

When overridden in a derived class, gets a value indicating whether the current stream supports writing.
public propertyLength

Supported by the .NET Compact Framework.

When overridden in a derived class, gets the length in bytes of the stream.
public propertyPosition

Supported by the .NET Compact Framework.

When overridden in a derived class, gets or sets the position within the current stream.

Public Methods

public methodBeginRead

Supported by the .NET Compact Framework.

Begins an asynchronous read operation.
public methodBeginWrite

Supported by the .NET Compact Framework.

Begins an asynchronous write operation.
public methodClose

Supported by the .NET Compact Framework.

Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
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 methodEndRead

Supported by the .NET Compact Framework.

Waits for the pending asynchronous read to complete.
public methodEndWrite

Supported by the .NET Compact Framework.

Ends an asynchronous write operation.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodFlush

Supported by the .NET Compact Framework.

When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
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 methodRead

Supported by the .NET Compact Framework.

When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
public methodReadByte

Supported by the .NET Compact Framework.

Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
public methodSeek

Supported by the .NET Compact Framework.

When overridden in a derived class, sets the position within the current stream.
public methodSetLength

Supported by the .NET Compact Framework.

When overridden in a derived class, sets the length of the current stream.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodWrite

Supported by the .NET Compact Framework.

When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
public methodWriteByte

Supported by the .NET Compact Framework.

Writes a byte to the current position in the stream and advances the position within the stream by one byte.

Protected Constructors

protected constructorStream Constructor

Supported by the .NET Compact Framework.

Initializes a new instance of the Stream class.

Protected Methods

protected methodCreateWaitHandle

Supported by the .NET Compact Framework.

Allocates a WaitHandle object.
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

Stream Class | System.IO Namespace

Show:
© 2014 Microsoft