Mono Class Library: System.IO.Stream Overview | Members

System.IO.Stream.Length Property

Gets the length in bytes of the stream. [Edit]

public abstract long Length { get; }

Value

A long value representing the length of the stream in bytes. [Edit]

Exceptions

TypeReason
NotSupportedExceptionThe stream does not support seeking. [Edit]
ObjectDisposedExceptionThe stream is closed. [Edit]

Remarks

Note: Use the Stream.CanSeek property to determine whether the current instance supports seeking.

Operation
This property is read-only.

[Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0