Retrieves the stream length in bytes.
[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 stream length in bytes.
Exception Type | Condition |
---|---|
IOException | The underlying stream is null or closed. |
NotSupportedException | The stream does not support seeking. |
BufferedStream Class | BufferedStream Members | System.IO Namespace