Share via


MemoryStream.Length Property

Gets the length of the stream in bytes.

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

Syntax

public override long Length { get; }

Property Value

The length of the stream in bytes.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

MemoryStream Class
MemoryStream Members
System.IO Namespace