AppResourceGroupInfo Class

Definition

Provides diagnostic information such as memory usage and energy use.

public ref class AppResourceGroupInfo sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppResourceGroupInfo final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppResourceGroupInfo
Public NotInheritable Class AppResourceGroupInfo
Inheritance
Object Platform::Object IInspectable AppResourceGroupInfo
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)
App 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

Gets the instance identifier.

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()

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

GetMemoryReport()

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

GetProcessDiagnosticInfos()

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

GetStateReport()

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

StartResumeAsync()

Initiate moving the associated app to the active state.

StartSuspendAsync()

Initiate moving the associated app to the suspended state.

StartTerminateAsync()

Initiate moving the associated app to the terminated state.

Applies to