Click or drag to resize

MemoryStreamCapacity Property

Gets or sets the number of bytes allocated for this stream.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public virtual int Capacity { get; set; }

Return Value

Int32
The length of the usable portion of the buffer for the stream.
Exceptions
ExceptionCondition
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.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also