When overridden in a derived class, gets the length in bytes of the stream.
Declaration Syntax
Return Value
A long value representing the length of the stream in bytes.
Exceptions
Exception | Condition |
---|---|
NotSupportedException | A class derived from Stream does not support seeking.
|
ObjectDisposedException | Methods were called after the stream was closed.
|