MemoryManager Class
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.
Provides access to information on an app's memory usage.
public ref class MemoryManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MemoryManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class MemoryManager
Public Class MemoryManager
- Inheritance
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Windows version | SDK version | Value added |
---|---|---|
1511 | 10586 | TrySetAppMemoryUsageLimit |
1709 | 16299 | ExpectedAppMemoryUsageLimit |
App |
Gets the app's current memory usage. |
App |
Gets the app's memory usage level. |
App |
Gets the app's memory usage limit. |
Expected |
Gets the amount of memory that your app may expect to have available. |
Get |
Gets an AppMemoryReport for the app, which provides information about its memory usage. |
Get |
Gets a ProcessMemoryReport for a process, which provides information about its memory usage. |
Try |
Tries to set a specific memory cap for the current app or task. In cases where memory caps are shared between foreground and background components, any difference between the default cap and the new request will be assigned to the other component. |
App |
Raised when the app's memory consumption has decreased to a lower value in the AppMemoryUsageLevel enumeration. |
App |
Raised when the app's memory consumption has increased to a higher value in the AppMemoryUsageLevel enumeration. |
App |
Raised just before the limit of how much total memory the app can use is changed. |