C# Class OpenHardwareMonitor.Hardware.HDD.SmartAttribute

Afficher le fichier Open project: pklinef/open-hardware-monitor Class Usage Examples

Méthodes publiques

Méthode Description
ConvertValue ( DriveAttributeValue value ) : float
SmartAttribute ( byte identifier, string name ) : System

Initializes a new instance of the SmartAttribute class.

SmartAttribute ( byte identifier, string name, RawValueConversion rawValueConversion ) : System

Initializes a new instance of the SmartAttribute class.

SmartAttribute ( byte identifier, string name, RawValueConversion rawValueConversion, SensorType sensorType, int sensorChannel, bool defaultHiddenSensor = false ) : System

Initializes a new instance of the SmartAttribute class.

Method Details

ConvertValue() public méthode

public ConvertValue ( DriveAttributeValue value ) : float
value DriveAttributeValue
Résultat float

SmartAttribute() public méthode

Initializes a new instance of the SmartAttribute class.
public SmartAttribute ( byte identifier, string name ) : System
identifier byte The SMART identifier of the attribute.
name string The name of the attribute.
Résultat System

SmartAttribute() public méthode

Initializes a new instance of the SmartAttribute class.
public SmartAttribute ( byte identifier, string name, RawValueConversion rawValueConversion ) : System
identifier byte The SMART identifier of the attribute.
name string The name of the attribute.
rawValueConversion RawValueConversion A delegate for converting the raw byte /// array into a value (or null to use the attribute value).
Résultat System

SmartAttribute() public méthode

Initializes a new instance of the SmartAttribute class.
public SmartAttribute ( byte identifier, string name, RawValueConversion rawValueConversion, SensorType sensorType, int sensorChannel, bool defaultHiddenSensor = false ) : System
identifier byte The SMART identifier of the attribute.
name string The name of the attribute.
rawValueConversion RawValueConversion A delegate for converting the raw byte /// array into a value (or null to use the attribute value).
sensorType SensorType Type of the sensor or null if no sensor is to /// be created.
sensorChannel int If there exists more than one attribute with /// the same sensor channel and type, then a sensor is created only for the /// first attribute.
defaultHiddenSensor bool True to hide the sensor initially.
Résultat System