MemoryStream: Capacity (let) |
Sets the number of bytes allocated for this stream.
Public Property Let Capacity( ByVal Value As Long )
Capacity is the buffer length for system-provided byte arrays. Capacity cannot be set to a value less than the current length of the stream.
Read/Write.
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 | Let is invoked on a stream whose capacity cannot be modified. |