Basahin sa Ingles I-edit

Ibahagi sa


OpenHardwareMonitor.Sensor Class

Definition

Represents a single sensor

C#
public sealed class OpenHardwareMonitor.Sensor : IDisposable
C#
public class OpenHardwareMonitor.Sensor : 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

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