Edit

Share via


OpenHardwareMonitor.GetSensorList Method

Definition

Overloads

GetSensorList()

Query the list of all available sensors.

GetSensorList(OpenHardwareMonitor+Hardware)

Get the list of sensors for a specific piece of hardware

GetSensorList()

Query the list of all available sensors.

public System.Collections.Generic.IList<Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor> GetSensorList ();
member this.GetSensorList : unit -> System.Collections.Generic.IList<Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor>
Public Function GetSensorList () As IList(Of OpenHardwareMonitor.Sensor)

Returns

A list of OpenHardwareMonitor.Sensor instances. May be empty.

Exceptions

The WMI objects required are not available. Is OpenHardwareMonitor running?

Applies to

GetSensorList(OpenHardwareMonitor+Hardware)

Get the list of sensors for a specific piece of hardware

public System.Collections.Generic.IEnumerable<Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor> GetSensorList (Iot.Device.HardwareMonitor.OpenHardwareMonitor.Hardware? forHardware);
member this.GetSensorList : Iot.Device.HardwareMonitor.OpenHardwareMonitor.Hardware -> seq<Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor>
Public Function GetSensorList (forHardware As OpenHardwareMonitor.Hardware) As IEnumerable(Of OpenHardwareMonitor.Sensor)

Parameters

forHardware
OpenHardwareMonitor.Hardware

The module that should be queried

Returns

A list of sensors

Applies to