Returns the length in bytes of the stream.
[Visual Basic] Overridable Public ReadOnly Property Length As Long [C#] public long Length {override get;} [C++] public: __property virtual __int64 get_Length(); [JScript] public function get Length() : long;
The length in bytes of the stream.
Exception Type | Condition |
---|---|
IOException | The stream is closed. |
MemoryStream Class | MemoryStream Members | System.IO Namespace