Length Property
Collapse the table of content
Expand the table of content

UnmanagedMemoryStream.Length Property

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

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the length of the data in a stream.

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

Public Overrides ReadOnly Property Length As Long

Property Value

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


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

© 2017 Microsoft