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

System.IO.MemoryStream.Length Property

Gets the length of the stream in bytes.

public override long Length { get; }

Value

A long containing the length of the stream in bytes.

Exceptions

TypeReason
ObjectDisposedExceptionThe current stream is closed.

Remarks

This property is read-only.

Note: This property overrides Stream.Length.

Requirements

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