AppResourceGroupInfo AppResourceGroupInfo AppResourceGroupInfo AppResourceGroupInfo AppResourceGroupInfo Class

Definition

Provides diagnostic information such as memory usage and energy use.

public : sealed class AppResourceGroupInfo
struct winrt::Windows::System::AppResourceGroupInfo
public sealed class AppResourceGroupInfo
Public NotInheritable Class AppResourceGroupInfo
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Remarks

Resource groups allow you to group components for the purposes of resource management. If you don't define a group, you will get at least one by default, and possibly more, depending on whether the app has background tasks.

Resource groups are specified in the manifest with the ResourceGroup tag.

Version history

Windows version SDK version Value added
1803 17134 StartResumeAsync
1803 17134 StartSuspendAsync
1803 17134 StartTerminateAsync

Properties

InstanceId InstanceId InstanceId InstanceId InstanceId

Gets the instance identifier.

IsShared IsShared IsShared IsShared IsShared

Indicates whether the group is part of a shared resource group. Being part of a shared resource group indicates that there are multiple apps in the package and that they share a common component.

Methods

GetBackgroundTaskReports() GetBackgroundTaskReports() GetBackgroundTaskReports() GetBackgroundTaskReports() GetBackgroundTaskReports()

Provides information about background tasks such as their entry points, names, task ids, and trigger names.

GetMemoryReport() GetMemoryReport() GetMemoryReport() GetMemoryReport() GetMemoryReport()

Provides information about memory usage such as the commit limit, commit usage, and so on.

GetProcessDiagnosticInfos() GetProcessDiagnosticInfos() GetProcessDiagnosticInfos() GetProcessDiagnosticInfos() GetProcessDiagnosticInfos()

Gets process diagnostic information for the group such as used CPU time, disk I/O usage, and so on.

GetStateReport() GetStateReport() GetStateReport() GetStateReport() GetStateReport()

Gets the state report information such as execution state, energy quota state, and so on.

StartResumeAsync() StartResumeAsync() StartResumeAsync() StartResumeAsync() StartResumeAsync()

Initiate moving the associated app to the active state.

StartSuspendAsync() StartSuspendAsync() StartSuspendAsync() StartSuspendAsync() StartSuspendAsync()

Initiate moving the associated app to the suspended state.

StartTerminateAsync() StartTerminateAsync() StartTerminateAsync() StartTerminateAsync() StartTerminateAsync()

Initiate moving the associated app to the terminated state.