AppResourceGroupInfo 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 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
- Attributes
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
|
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.
Windows version | SDK version | Value added |
---|---|---|
1803 | 17134 | StartResumeAsync |
1803 | 17134 | StartSuspendAsync |
1803 | 17134 | StartTerminateAsync |
Instance |
Gets the instance identifier. |
Is |
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. |
Get |
Provides information about background tasks such as their entry points, names, task ids, and trigger names. |
Get |
Provides information about memory usage such as the commit limit, commit usage, and so on. |
Get |
Gets process diagnostic information for the group such as used CPU time, disk I/O usage, and so on. |
Get |
Gets the state report information such as execution state, energy quota state, and so on. |
Start |
Initiate moving the associated app to the active state. |
Start |
Initiate moving the associated app to the suspended state. |
Start |
Initiate moving the associated app to the terminated state. |
Product | Versions |
---|---|
WinRT | Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |