OpenHardwareMonitor.Sensor 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.
Represents a single sensor
public sealed class OpenHardwareMonitor.Sensor : IDisposable
public class OpenHardwareMonitor.Sensor : IDisposable
type OpenHardwareMonitor.Sensor = class
interface IDisposable
Public NotInheritable Class OpenHardwareMonitor.Sensor
Implements IDisposable
Public Class OpenHardwareMonitor.Sensor
Implements IDisposable
- Inheritance
-
OpenHardwareMonitor.Sensor
- Implements
Open |
Obsolete.
Create a sensor instance from a management object. This member is obsolete, use another constructor instead or a derived class. |
Open |
Creates a sensor instance |
Identifier |
Sensor identifier (device path) |
Name |
Name of the sensor |
Parent |
Sensor parent |
Sensor |
Kind of sensor |
Value |
Sets or gets the last value of the sensor. To get an updated value, use TryGetValue(IQuantity) instead. The setter is intended for implementations of derived sensors only. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Dispose(Boolean) |
Disposes this instance |
To |
Returns a string that represents the current object. |
Try |
Attempt to query a value for the sensor |
Try |
Attempt to get a value of the provided type |
Update |
Read the value from the underlying transport. This is expected to be overridden by derived classes, unless they use Value to set the content. |
Produkto | Mga Bersyon |
---|---|
.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 |