Memory |
public virtual int Capacity { get; set; }
| 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. |