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)]
/// [Windows.Foundation.Metadata.Static(Windows.System.IAppDiagnosticInfoStatics, 262144, "Windows.Foundation.UniversalApiContract")]
class AppDiagnosticInfo sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.System.IAppDiagnosticInfoStatics, 262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.DualApiPartition(version=167772164)]
/// [Windows.Foundation.Metadata.Static(Windows.System.IAppDiagnosticInfoStatics2, 327680, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppDiagnosticInfo sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.IAppDiagnosticInfoStatics), 262144, "Windows.Foundation.UniversalApiContract")]
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.Static(typeof(Windows.System.IAppDiagnosticInfoStatics), 262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.DualApiPartition(version=167772164)]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.IAppDiagnosticInfoStatics2), 327680, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppDiagnosticInfo
Public NotInheritable Class AppDiagnosticInfo
- Inheritance
-
AppDiagnosticInfo
- Attributes
Windows 10 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 @"Windows.System.AppDiagnosticInfoWatcher?text=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 running app. |
RequestInfoForPackageAsync(String) |
Gets a collection of AppDiagnosticInfo objects for all instances of the specified app package. |