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.
(Byte, Int32, Int32, Boolean)
.NET Framework (current version)
Initializes a new non-resizable instance of the
MemoryStream class based on the specified region of a 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 index in
buffer at which the stream begins. count
The length of the stream in bytes.
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 Capacity count.
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. However, you can write to the stream if writable is true. 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