TorqueMeasurement Class

Definition

Represents a torque measurement and display.

public class TorqueMeasurement : Microsoft.Health.ItemTypes.Measurement<double>
Inheritance

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Remarks

In HealthVault, torque measurements have values and display values. All values are stored in a base unit of newton meters. An application can take a torque value using any scale the application chooses and can store the user-entered value as the display value, but the torque value must be converted to newton meters to be stored in HealthVault.

Constructors

TorqueMeasurement()

Creates a new instance of the TorqueMeasurement class with empty values.

TorqueMeasurement(Double)

Creates a new instance of the TorqueMeasurement class with the specified value in newton meters.

TorqueMeasurement(Double, DisplayValue)

Creates a new instance of the TorqueMeasurement class with the specified value in newton meters and optional display value.

Methods

AssertMeasurementValue(Double)

Verifies that the value is a legal torque value.

GetValueString(Double)

Gets a string representation of the torque in the base units.

ParseValueXml(XPathNavigator)

Populates the data for the torque from the XML.

WriteValueXml(XmlWriter)

Writes the torque to the specified XML writer.