SystemDiagnosticInfo 类

定义

提供有关系统的诊断信息,例如 CPU 使用率、磁盘使用情况、内存使用情况等。

public ref class SystemDiagnosticInfo sealed
/// [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 SystemDiagnosticInfo final
[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 SystemDiagnosticInfo
Public NotInheritable Class SystemDiagnosticInfo
继承
Object Platform::Object IInspectable SystemDiagnosticInfo
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

属性

CpuUsage

获取系统使用的 CPU 时间。

MemoryUsage

获取系统的内存使用情况数据。

PreferredArchitecture

获取系统的首选处理器体系结构。

方法

GetForCurrentSystem()

获取当前系统的 SystemDiagnosticInfo

IsArchitectureSupported(ProcessorArchitecture)

确定系统是否支持指定的处理器体系结构。

适用于