Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System.IO
MemoryStream Class
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.NET Framework Class Library
MemoryStream Constructor

Initializes a new instance of the MemoryStream class.

Name Description
MemoryStream () Initializes a new instance of the MemoryStream class with an expandable capacity initialized to zero.

Supported by the .NET Compact Framework.

MemoryStream (Byte[]) Initializes a new non-resizable instance of the MemoryStream class based on the specified byte array.

Supported by the .NET Compact Framework.

MemoryStream (Int32) Initializes a new instance of the MemoryStream class with an expandable capacity initialized as specified.

Supported by the .NET Compact Framework.

MemoryStream (Byte[], Boolean) Initializes a new non-resizable instance of the MemoryStream class based on the specified byte array with the CanWrite property set as specified.

Supported by the .NET Compact Framework.

MemoryStream (Byte[], Int32, Int32) Initializes a new non-resizable instance of the MemoryStream class based on the specified region (index) of a byte array.

Supported by the .NET Compact Framework.

MemoryStream (Byte[], Int32, Int32, Boolean) Initializes a new non-resizable instance of the MemoryStream class based on the specified region of a byte array, with the CanWrite property set as specified.

Supported by the .NET Compact Framework.

MemoryStream (Byte[], Int32, Int32, Boolean, Boolean) Initializes a new instance of the MemoryStream class based on the specified region of a byte array, with the CanWrite property set as specified, and the ability to call GetBuffer set as specified.

Supported by the .NET Compact Framework.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker