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 with the property set as specified. CanWrite Namespace:
mscorlib (in mscorlib.dll)
The array of unsigned bytes from which to create this stream.
The setting of the
property, which determines whether the stream supports writing. CanWrite
and CanRead properties are both set to CanSeek true. is set to the length of the specified byte array. 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 Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1
Return to top