OpenHardwareMonitor.Sensor Constructors
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for