Share via


Stream.Length Property

When overridden in a derived class, this property gets the length of the current Stream object, in bytes.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual abstract long Length { get; }

Property Value

A long value that represents the length of the current stream, in bytes.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Stream Class
Stream Members
System.IO Namespace