C# Класс OpenHardwareMonitor.Hardware.HDD.SmartAttribute

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

ConvertValue() публичный Метод

public ConvertValue ( DriveAttributeValue value ) : float
value DriveAttributeValue
Результат float

SmartAttribute() публичный Метод

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.
Результат System

SmartAttribute() публичный Метод

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).
Результат System

SmartAttribute() публичный Метод

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.
Результат System