(Byte, Int32, Int32)
.NET Framework (current version)
Initializes a new non-resizable instance of the
MemoryStream class based on the specified region (index) of a byte array. Namespace:
mscorlib (in mscorlib.dll)
The array of unsigned bytes from which to create this stream.
The index into
buffer at which the stream begins. count
The length of the stream in bytes.
, CanRead , and CanSeek properties are all set to CanWrite true, but the capacity cannot be changed. 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. 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