Edit

Share via


OpenHardwareMonitor Constructors

Definition

Overloads

OpenHardwareMonitor()

Constructs a new instance of this class. The class can be constructed even if no sensors are available or OpenHardwareMonitor is not running (yet).

OpenHardwareMonitor(OpenHardwareMonitorTransport, String, Int32)

Constructs a new instance of this class using a specific transport protocol The class can be constructed even if no sensors are available or OpenHardwareMonitor is not running (yet).

OpenHardwareMonitor()

Constructs a new instance of this class. The class can be constructed even if no sensors are available or OpenHardwareMonitor is not running (yet).

public OpenHardwareMonitor ();
Public Sub New ()

Exceptions

The operating system is not Windows.

Applies to

OpenHardwareMonitor(OpenHardwareMonitorTransport, String, Int32)

Constructs a new instance of this class using a specific transport protocol The class can be constructed even if no sensors are available or OpenHardwareMonitor is not running (yet).

public OpenHardwareMonitor (Iot.Device.HardwareMonitor.OpenHardwareMonitorTransport transport, string host = "localhost", int port = 8086);
new Iot.Device.HardwareMonitor.OpenHardwareMonitor : Iot.Device.HardwareMonitor.OpenHardwareMonitorTransport * string * int -> Iot.Device.HardwareMonitor.OpenHardwareMonitor
Public Sub New (transport As OpenHardwareMonitorTransport, Optional host As String = "localhost", Optional port As Integer = 8086)

Parameters

transport
OpenHardwareMonitorTransport

The transport protocol to use. WMI is for OpenHardwareMonitor 0.9 and below, from OpenHardwareMonitor 0.10 and above, HTTP is used.

host
String

Optional host name for connection

port
Int32

Network port

Exceptions

Applies to