MemoryStream: Length (get)

Length

Gets the length of the stream in bytes.



 Public Property Get Length ( ) As Currency

Return Values

Currency -  The length of the stream in bytes.

Remarks

The length of the stream differs from the capacity in that the capacity is the amount of allocated memory used to store the stream, and the length is the number of bytes used from within the allocated memory.

Read Only.

Exceptions

ExceptionCondition
ObjectDisposedExceptionThe stream is closed.

See Also

Project CorLib Overview

Class MemoryStream Overview