AppDiagnosticInfo 類別

定義

包含 API,用於取得所有執行中應用程式的基本診斷資訊集。

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
繼承
Object Platform::Object IInspectable AppDiagnosticInfo
屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)
應用程式功能
appDiagnostics

備註

版本歷程記錄

Windows 版本 SDK 版本 新增值
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

屬性

AppInfo

提供應用程式套件系列名稱和套件相對應用程式名稱的相關資訊。

方法

CreateResourceGroupWatcher()

建立 ResourceGroupInfoWatcher 來監視應用程式或工作的執行狀態,並在其狀態變更時提供通知。

CreateWatcher()

建立 AppDiagnosticInfoWatcher 來監視應用程式執行狀態的相關資訊,並在其狀態變更時提供通知。

GetResourceGroups()

取得診斷資訊,例如一段時間的記憶體使用量、一段時間的能源使用量等等,以此類推應用程式中的每個資源群組。

LaunchAsync()

啟動與診斷資訊相關聯的應用程式。

RequestAccessAsync()

以非同步方式要求存取診斷資訊。

RequestInfoAsync()

取得具有套件系列名稱之所有執行中應用程式 之 AppDiagnosticInfo 物件的集合。

RequestInfoForAppAsync()

取得此應用程式所有執行中實例的 AppDiagnosticInfo 物件集合。

RequestInfoForAppAsync(String)

取得指定應用程式之所有實例的 AppDiagnosticInfo 物件集合。

RequestInfoForPackageAsync(String)

取得指定之應用程式套件之所有實例的 AppDiagnosticInfo 物件集合。

適用於

另請參閱