AppDiagnosticInfo Class

Definition

Contains APIs for getting a basic set of diagnostic information for all running apps.

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

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
appDiagnostics

Remarks

Version history

Windows version SDK version Value added
1709 16299 CreateResourceGroupWatcher
1709 16299 CreateWatcher
1709 16299 GetResourceGroups
1709 16299 RequestAccessAsync
1709 16299 RequestInfoForAppAsync
1709 16299 RequestInfoForAppAsync(String)
1709 16299 RequestInfoForPackageAsync
1803 17134 LaunchAsync

Properties

AppInfo

Provides info about the app's package family name and package-relative app name.

Methods

CreateResourceGroupWatcher()

Creates a ResourceGroupInfoWatcher that monitors the execution state of an app or task, and provides notifications when its state changes.

CreateWatcher()

Creates an AppDiagnosticInfoWatcher that monitors information about the execution state of an app, and provides notifications when its state changes.

GetResourceGroups()

Gets diagnostic information such as memory usage over time, energy use over time, and so on, for each resource group in the app.

LaunchAsync()

Launches the app associated with the diagnostic info.

RequestAccessAsync()

Asynchronously requests access to diagnostic information.

RequestInfoAsync()

Gets a collection of AppDiagnosticInfo objects for all running apps that have a package family name.

RequestInfoForAppAsync()

Gets a collection of AppDiagnosticInfo objects for all running instances of this app.

RequestInfoForAppAsync(String)

Gets a collection of AppDiagnosticInfo objects for all instances of the specified app.

RequestInfoForPackageAsync(String)

Gets a collection of AppDiagnosticInfo objects for all instances of the specified app package.

Applies to

See also