AppResourceGroupInfo AppResourceGroupInfo AppResourceGroupInfo AppResourceGroupInfo Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Provides diagnostic information such as memory usage and energy use.

public : sealed class AppResourceGroupInfo : IAppResourceGroupInfopublic sealed class AppResourceGroupInfo : IAppResourceGroupInfoPublic NotInheritable Class AppResourceGroupInfo Implements IAppResourceGroupInfo// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.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.

Properties

InstanceId InstanceId InstanceId InstanceId

Prerelease. Gets the instance identifier.

public : PlatForm::Guid InstanceId { get; }public Guid InstanceId { get; }Public ReadOnly Property InstanceId As Guid// You can use this property in JavaScript.
Value
PlatForm::Guid Guid Guid Guid

The instance ID.

Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Remarks

This is a system-generated value that is unique per session; it is not guaranteed to be unique across device reboots.

IsShared IsShared IsShared IsShared

Prerelease. 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.

public : PlatForm::Boolean IsShared { get; }public bool IsShared { get; }Public ReadOnly Property IsShared As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True means the group is part of a shared resource group; false, otherwise.

Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

Remarks

When a resource group is shared, it will show up in the resource group collections reported by multiple apps if those apps that share this resource group are currently running.

Methods

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

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

public : IVector<AppResourceGroupBackgroundTaskReport> GetBackgroundTaskReports()public IList<AppResourceGroupBackgroundTaskReport> GetBackgroundTaskReports()Public Function GetBackgroundTaskReports() As IList( Of AppResourceGroupBackgroundTaskReport )// You can use this method in JavaScript.
Returns
IVector<AppResourceGroupBackgroundTaskReport> IList<AppResourceGroupBackgroundTaskReport> IList<AppResourceGroupBackgroundTaskReport> IList<AppResourceGroupBackgroundTaskReport>

Information about each background task.

Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

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

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

public : AppResourceGroupMemoryReport GetMemoryReport()public AppResourceGroupMemoryReport GetMemoryReport()Public Function GetMemoryReport() As AppResourceGroupMemoryReport// You can use this method in JavaScript.
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

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

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

public : IVector<ProcessDiagnosticInfo> GetProcessDiagnosticInfos()public IList<ProcessDiagnosticInfo> GetProcessDiagnosticInfos()Public Function GetProcessDiagnosticInfos() As IList( Of ProcessDiagnosticInfo )// You can use this method in JavaScript.
Returns
IVector<ProcessDiagnosticInfo> IList<ProcessDiagnosticInfo> IList<ProcessDiagnosticInfo> IList<ProcessDiagnosticInfo>

The process diagnostic info.

Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

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

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

public : AppResourceGroupStateReport GetStateReport()public AppResourceGroupStateReport GetStateReport()Public Function GetStateReport() As AppResourceGroupStateReport// You can use this method in JavaScript.
Returns
Additional features and requirements
Device family
Windows 10 Insider Preview (introduced v10.0.16257.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

See Also