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;
A long value representing the length of the stream in bytes.
Exception Type | Condition |
---|---|
NotSupportedException | CanSeek for this stream is false. |
IOException | An I/O error occurs. |