Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UnmanagedMemoryStream.Length Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets the length of the data in a stream.

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

public override long Length { get; }

Property Value

Type: System.Int64
The length of the data in the stream.

ExceptionCondition
ObjectDisposedException

The stream is closed.

If unchanged since the stream was initialized, this property returns the length value provided to the constructor. If changes to the stream have occurred, this property reflects any changes to the length of the data.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft