BufferedStream.Length Property (System.IO) (original) (raw)

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the stream length in bytes.

public:
 virtual property long Length { long get(); };
public override long Length { get; }
member this.Length : int64
Public Overrides ReadOnly Property Length As Long

Property Value

The stream length in bytes.

Exceptions

The underlying stream is null or closed.

The stream does not support seeking.

Methods were called after the stream was closed.

Applies to

See also