MemoryStream Constructor

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the MemoryStream class.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodMemoryStream()

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

System_CAPS_pubmethodMemoryStream(Byte[])

Initializes a new non-resizable instance of the MemoryStream class based on the specified byte array.

System_CAPS_pubmethodMemoryStream(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.

System_CAPS_pubmethodMemoryStream(Byte[], Int32, Int32)

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

System_CAPS_pubmethodMemoryStream(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.

System_CAPS_pubmethodMemoryStream(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.

System_CAPS_pubmethodMemoryStream(Int32)

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

Return to top
Show: