When overridden in a derived class, gets the length in bytes of the stream.
Namespace: FirstFloor.Documents.IOAssembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)
Syntax
| C# |
|---|
public override long Length { get; } |
| Visual Basic |
|---|
Public Overrides ReadOnly Property Length As Long Get |
| Visual C++ |
|---|
public: virtual property long long Length { long long get () override; } |
Field Value
Return Value
A long value representing the length of the stream in bytes.
Exceptions
| Exception | Condition |
|---|---|
| System..::..NotSupportedException | A class derived from Stream does not support seeking. |
| System..::..ObjectDisposedException | Methods were called after the stream was closed. |