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

System.IO.MemoryStream.Length Property

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

public override long Length { get; }

Value

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

Exceptions

TypeReason
ObjectDisposedExceptionThe current stream is closed. [Edit]

Remarks

This property is read-only.

Note: This property overrides Stream.Length.

[Edit]

Requirements

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