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.
.NET Framework (current version)
Initializes a new non-resizable instance of the
MemoryStream class based on the specified byte array. Namespace:
mscorlib (in mscorlib.dll)
The array of unsigned bytes from which to create the current stream.
, CanRead , and CanSeek properties are all set to CanWrite true. is set to the length of the specified byte array. The new stream can be written to, but is not resizable. Capacity
The length of the stream cannot be set to a value greater than the initial length of the specified byte array; however, the stream can be truncated (see
This constructor does not expose the underlying stream.
GetBuffer throws UnauthorizedAccessException.
Universal Windows Platform
Available since 8
Available since 1.1
Portable Class Library
portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1
Return to top