When overridden in a derived class, gets the length in bytes of the stream.

Namespace: FirstFloor.Documents.IO
Assembly: 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

ExceptionCondition
System..::..NotSupportedExceptionA class derived from Stream does not support seeking.
System..::..ObjectDisposedExceptionMethods were called after the stream was closed.

See Also