OpenHardwareMonitor.GetSensorList Method
Definition
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.
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