MemoryStream.Capacity Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the number of bytes allocated for this stream.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | A capacity is set that is negative or less than the current length of the stream. |
| ObjectDisposedException | The current stream is closed. |
| NotSupportedException | set is invoked on a stream whose capacity cannot be modified. |
Show: