OpenHardwareMonitor Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class connects to a running instance of OpenHardwareMonitor and reads out all available values. This works only if OpenHardwareMonitor (https://openhardwaremonitor.org/) is currently running. While the tool needs to be run with elevated permissions, the application using this binding does not.
public sealed class OpenHardwareMonitor : IDisposable
type OpenHardwareMonitor = class
interface IDisposable
Public NotInheritable Class OpenHardwareMonitor
Implements IDisposable
- Inheritance
-
OpenHardwareMonitor
- Implements
Open |
Constructs a new instance of this class. The class can be constructed even if no sensors are available or OpenHardwareMonitor is not running (yet). |
Open |
Constructs a new instance of this class using a specific transport protocol The class can be constructed even if no sensors are available or OpenHardwareMonitor is not running (yet). |
Logical |
Number of logical processors in the system |
Monitoring |
The minimum monitoring interval. |
Update |
Selects the sensor update strategy. Default is PerSensor for WMI, SynchronousAfterTimeout for HTTP. |
Disable |
Remove the derived sensors from the active list. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Enable |
Adds some special derived sensors.
|
Get |
Gets the overall CPU Load |
Get |
Returns a list of hardware components, such as "CPU", "GPU" or "Mainboard" |
Get |
Query the list of all available sensors. |
Get |
Get the list of sensors for a specific piece of hardware |
Start |
Starts monitoring a sensor. This will internally start a thread that calls the provided action each time the TimeSpan elapses. |
Stop |
Stops all monitoring. |
Stop |
Stops monitoring of the given job. |
Try |
Tries to calculate the average of a set of sensors. |
Try |
Gets the average CPU temperature (averaged over all CPU sensors / cores) |
Try |
Gets the average GPU temperature (averaged over all GPU sensors / cores) |
Update |
Re-reads the sensor tree. Updates all values and the list of sensors.
You should invalidate all cached OpenHardwareMonitor.Sensor and OpenHardwareMonitor.Hardware instances after using this with |
Toode | Versioonid |
---|---|
.NET IoT Libraries | 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |