Skip to main content
MemoryManager class

Provides access to information on an app's memory usage.

Syntax


public static class MemoryManager

Public NotInheritable Class MemoryManager

public ref class MemoryManager abstract sealed 

Attributes

[ MarshalingBehavior(Agile)]
[ Version]

Members

The MemoryManager class has these types of members:

Events

The MemoryManager class has these events.

EventDescription
AppMemoryUsageDecreased Raised when the app's memory consumption has decreased to a lower value in the AppMemoryUsageLevel enumeration.
AppMemoryUsageIncreased Raised when the app's memory consumption has increased to a higher value in the AppMemoryUsageLevel enumeration.
AppMemoryUsageLimitChanging Raised just before the limit of how much total memory the app can use is changed.

 

Methods

The MemoryManager class has these methods. It also inherits methods from the Object class.

MethodDescription
GetAppMemoryReport Gets an AppMemoryReport for the app, which provides information about its memory usage.
GetProcessMemoryReport Gets a ProcessMemoryReport for a process, which provides information about its memory usage.

 

Properties

The MemoryManager class has these properties.

PropertyAccess typeDescription

AppMemoryUsage

Read-onlyGets the app's current memory usage.

AppMemoryUsageLevel

Read-onlyGets the app's memory usage level.

AppMemoryUsageLimit

Read-onlyGets the app's memory usage limit.

 

Requirements ( device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.System
Windows::System [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.System
Windows::System [C++]

Metadata

Windows.winmd

See also

Object

 

 

Microsoft is conducting an online survey to understand your opinion of the MSDN Web site. If you choose to participate, the online survey will be presented to you when you leave the MSDN Web site.

Would you like to participate?