Edit

Share via


OpenHardwareMonitor.Sensor Class

Definition

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

Constructors

OpenHardwareMonitor.Sensor(ManagementObject, String, String, String, SensorType)
Obsolete.

Create a sensor instance from a management object. This member is obsolete, use another constructor instead or a derived class.

OpenHardwareMonitor.Sensor(String, String, String, SensorType)

Creates a sensor instance

Properties

Identifier

Sensor identifier (device path)

Name

Name of the sensor

Parent

Sensor parent

SensorType

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.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Disposes this instance

ToString()

Returns a string that represents the current object.

TryGetValue(IQuantity)

Attempt to query a value for the sensor

TryGetValue<T>(T)

Attempt to get a value of the provided type

UpdateValue(Double)

Read the value from the underlying transport. This is expected to be overridden by derived classes, unless they use Value to set the content.

Applies to