DeviceStatus.ApplicationCurrentMemoryUsage Property

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

Returns the memory usage of the current application in bytes.

Namespace:  Microsoft.Phone.Info
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Shared ReadOnly Property ApplicationCurrentMemoryUsage As Long
public static long ApplicationCurrentMemoryUsage { get; }

Property Value

Type: System..::.Int64
Returns Int64.

Remarks

You can use this property and the ApplicationMemoryUsageLimit property to determine the maximum additional amount of memory that your application process can allocate. For more information and a code example, see ApplicationMemoryUsageLimit.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

DeviceStatus Class

Microsoft.Phone.Info Namespace

Other Resources

Device status for Windows Phone 8