Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

MemoryStream Members

MemoryStream overview

Public Constructors

public constructorMemoryStream Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the MemoryStream class.

Public Properties

public propertyCanRead

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the current stream supports reading.
public propertyCanSeek

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the current stream supports seeking.
public propertyCanWrite

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the current stream supports writing.
public propertyCapacity

Supported by the .NET Compact Framework.

Gets or sets the number of bytes allocated for this stream.
public propertyLength

Supported by the .NET Compact Framework.

Overridden. Gets the length of the stream in bytes.
public propertyPosition

Supported by the .NET Compact Framework.

Overridden. Gets or sets the current position within the stream.

Public Methods

public methodBeginRead (inherited from Stream)

Supported by the .NET Compact Framework.

Begins an asynchronous read operation.
public methodBeginWrite (inherited from Stream)

Supported by the .NET Compact Framework.

Begins an asynchronous write operation.
public methodClose

Supported by the .NET Compact Framework.

Overridden. Closes the stream for reading and writing.
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 (inherited from Stream)

Supported by the .NET Compact Framework.

Waits for the pending asynchronous read to complete.
public methodEndWrite (inherited from Stream)

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.

Overridden. Overrides Stream.Flush so that no action is performed.
public methodGetBuffer

Supported by the .NET Compact Framework.

Returns the array of unsigned bytes from which this stream was created.
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.

Overridden. Reads a block of bytes from the current stream and writes the data to buffer.
public methodReadByte

Supported by the .NET Compact Framework.

Overridden. Reads a byte from the current stream.
public methodSeek

Supported by the .NET Compact Framework.

Overridden. Sets the position within the current stream to the specified value.
public methodSetLength

Supported by the .NET Compact Framework.

Overridden. Sets the length of the current stream to the specified value.
public methodToArray

Supported by the .NET Compact Framework.

Writes the entire stream contents to a byte array, regardless of the Position property.
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.

Overridden. Writes a block of bytes to the current stream using data read from buffer.
public methodWriteByte

Supported by the .NET Compact Framework.

Overridden. Writes a byte to the current stream at the current position.
public methodWriteTo

Supported by the .NET Compact Framework.

Writes the entire contents of this memory stream to another stream.

Protected Methods

protected methodCreateWaitHandle (inherited from Stream)

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

MemoryStream Class | System.IO Namespace

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