Edit

Share via


OpenHardwareMonitor.Sensor Constructors

Definition

Overloads

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

Creates a sensor instance

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

public Sensor (string name, string identifier, string? parent, Iot.Device.HardwareMonitor.SensorType typeEnum);
new Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor : string * string * string * Iot.Device.HardwareMonitor.SensorType -> Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor
Public Sub New (name As String, identifier As String, parent As String, typeEnum As SensorType)

Parameters

name
String
identifier
String
parent
String
typeEnum
SensorType

Applies to

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

Caution

Use Sensor(string name, string identifier, string? parent, SensorType typeEnum) instead

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

public Sensor (System.Management.ManagementObject instance, string? name, string? identifier, string? parent, Iot.Device.HardwareMonitor.SensorType typeEnum);
public Sensor (System.Management.ManagementObject instance, string name, string identifier, string? parent, Iot.Device.HardwareMonitor.SensorType typeEnum);
[System.Obsolete("Use Sensor(string name, string identifier, string? parent, SensorType typeEnum) instead")]
public Sensor (System.Management.ManagementObject dummy, string name, string identifier, string? parent, Iot.Device.HardwareMonitor.SensorType typeEnum);
new Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor : System.Management.ManagementObject * string * string * string * Iot.Device.HardwareMonitor.SensorType -> Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor
[<System.Obsolete("Use Sensor(string name, string identifier, string? parent, SensorType typeEnum) instead")>]
new Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor : System.Management.ManagementObject * string * string * string * Iot.Device.HardwareMonitor.SensorType -> Iot.Device.HardwareMonitor.OpenHardwareMonitor.Sensor
Public Sub New (instance As ManagementObject, name As String, identifier As String, parent As String, typeEnum As SensorType)
Public Sub New (dummy As ManagementObject, name As String, identifier As String, parent As String, typeEnum As SensorType)

Parameters

instancedummy
ManagementObject
name
String
identifier
String
parent
String
typeEnum
SensorType
Attributes

Applies to