AppDiagnosticInfo AppDiagnosticInfo AppDiagnosticInfo AppDiagnosticInfo Class

Definition

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

public : sealed class AppDiagnosticInfo : IAppDiagnosticInfo, IAppDiagnosticInfo2
public sealed class AppDiagnosticInfo : IAppDiagnosticInfo, IAppDiagnosticInfo2
Public NotInheritable Class AppDiagnosticInfo Implements IAppDiagnosticInfo, IAppDiagnosticInfo2
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
appDiagnostics

Properties

AppInfo AppInfo AppInfo AppInfo

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

public : AppInfo AppInfo { get; }
public AppInfo AppInfo { get; }
Public ReadOnly Property AppInfo As AppInfo
var appInfo = appDiagnosticInfo.appInfo;

Methods

CreateResourceGroupWatcher() CreateResourceGroupWatcher() CreateResourceGroupWatcher() CreateResourceGroupWatcher()

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

public : ResourceGroupInfoWatcher CreateResourceGroupWatcher()
public ResourceGroupInfoWatcher CreateResourceGroupWatcher()
Public Function CreateResourceGroupWatcher() As ResourceGroupInfoWatcher
var resourceGroupInfoWatcher = appDiagnosticInfo.createResourceGroupWatcher();
Returns
ResourceGroupInfoWatcher ResourceGroupInfoWatcher ResourceGroupInfoWatcher ResourceGroupInfoWatcher

A ResourceGroupInfoWatcher that can be used to monitor diagnostic info.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

CreateWatcher() CreateWatcher() CreateWatcher() CreateWatcher()

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

public : static AppDiagnosticInfoWatcher CreateWatcher()
public static AppDiagnosticInfoWatcher CreateWatcher()
Public Static Function CreateWatcher() As AppDiagnosticInfoWatcher
var appDiagnosticInfoWatcher = Windows.System.AppDiagnosticInfo.createWatcher();
Returns
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

GetResourceGroups() GetResourceGroups() GetResourceGroups() GetResourceGroups()

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

public : IVector<ResourceGroupInfo> GetResourceGroups()
public IList<ResourceGroupInfo> GetResourceGroups()
Public Function GetResourceGroups() As IList<ResourceGroupInfo>( Of ResourceGroupInfo )
var iVector = appDiagnosticInfo.getResourceGroups();
Returns
IVector<ResourceGroupInfo> IList<ResourceGroupInfo> IList<ResourceGroupInfo> IList<ResourceGroupInfo>

Diagnostic info for each resource group in the app.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

RequestAccessAsync() RequestAccessAsync() RequestAccessAsync() RequestAccessAsync()

Asynchronously requests access to diagnostic information.

public : static IAsyncOperation<DiagnosticAccessStatus> RequestAccessAsync()
public static IAsyncOperation<DiagnosticAccessStatus> RequestAccessAsync()
Public Static Function RequestAccessAsync() As IAsyncOperation( Of DiagnosticAccessStatus )
Windows.System.AppDiagnosticInfo.requestAccessAsync().done( /* Your success and error handlers */ );
Returns
Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

RequestInfoAsync() RequestInfoAsync() RequestInfoAsync() RequestInfoAsync()

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

public : static IAsyncOperation<IVector<AppDiagnosticInfo>> RequestInfoAsync()
public static IAsyncOperation<IList<AppDiagnosticInfo>> RequestInfoAsync()
Public Static Function RequestInfoAsync() As IAsyncOperation<IList<AppDiagnosticInfo>>( Of IVector )
Windows.System.AppDiagnosticInfo.requestInfoAsync().done( /* Your success and error handlers */ );
Returns
IAsyncOperation<IVector<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>>

A list of AppDiagnosticInfo objects for all running apps that have a package family name.

Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)
Capabilities
appDiagnostics

Remarks

This method must be called from a UI thread the first time it is used by an application.

RequestInfoForAppAsync() RequestInfoForAppAsync() RequestInfoForAppAsync() RequestInfoForAppAsync()

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

public : static IAsyncOperation<IVector<AppDiagnosticInfo>> RequestInfoForAppAsync()
public static IAsyncOperation<IList<AppDiagnosticInfo>> RequestInfoForAppAsync()
Public Static Function RequestInfoForAppAsync() As IAsyncOperation<IList<AppDiagnosticInfo>>( Of IVector )
Windows.System.AppDiagnosticInfo.requestInfoForAppAsync().done( /* Your success and error handlers */ );
Returns
IAsyncOperation<IVector<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>>

A collection of AppDiagnosticInfo objects for all running instances of this app.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

RequestInfoForAppAsync(String) RequestInfoForAppAsync(String) RequestInfoForAppAsync(String) RequestInfoForAppAsync(String)

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

public : static IAsyncOperation<IVector<AppDiagnosticInfo>> RequestInfoForAppAsync(Platform::String aumid)
public static IAsyncOperation<IList<AppDiagnosticInfo>> RequestInfoForAppAsync(String aumid)
Public Static Function RequestInfoForAppAsync(aumid As String) As IAsyncOperation<IList<AppDiagnosticInfo>>( Of IVector )
Windows.System.AppDiagnosticInfo.requestInfoForAppAsync(aumid).done( /* Your success and error handlers */ );
Parameters
aumid
Platform::String String String String
Returns
IAsyncOperation<IVector<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>>

A collection of AppDiagnosticInfo objects for all instances of the app specified by appUserModelId.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics

RequestInfoForPackageAsync(String) RequestInfoForPackageAsync(String) RequestInfoForPackageAsync(String) RequestInfoForPackageAsync(String)

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

public : static IAsyncOperation<IVector<AppDiagnosticInfo>> RequestInfoForPackageAsync(Platform::String packageFamilyName)
public static IAsyncOperation<IList<AppDiagnosticInfo>> RequestInfoForPackageAsync(String packageFamilyName)
Public Static Function RequestInfoForPackageAsync(packageFamilyName As String) As IAsyncOperation<IList<AppDiagnosticInfo>>( Of IVector )
Windows.System.AppDiagnosticInfo.requestInfoForPackageAsync(packageFamilyName).done( /* Your success and error handlers */ );
Parameters
packageFamilyName
Platform::String String String String

The identifier of the app package for which to get the AppDiagnosticInfo.

Returns
IAsyncOperation<IVector<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>>

A collection of AppDiagnosticInfo objects for all instances of the app package specified by packageFamilyName.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
appDiagnostics