SystemDiagnosticInfo Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Stellt Diagnoseinformationen zum System bereit, z. B. CPU-Auslastung, Datenträgernutzung, Arbeitsspeicherauslastung usw.
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
- Vererbung
- Attribute
Windows-Anforderungen
| Gerätefamilie |
Windows 10 Creators Update (eingeführt in 10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (eingeführt in v4.0)
|
Eigenschaften
| CpuUsage |
Ruft die vom System verwendete CPU-Zeit ab. |
| MemoryUsage |
Ruft Speichernutzungsdaten für das System ab. |
| PreferredArchitecture |
Ruft die bevorzugte Prozessorarchitektur des Systems ab. |
Methoden
| GetForCurrentSystem() |
Ruft systemDiagnosticInfo für das aktuelle System ab. |
| IsArchitectureSupported(ProcessorArchitecture) |
Bestimmt, ob das System die angegebene Prozessorarchitektur unterstützt. |