Temperature​Measurement Class

Definition

Represents a temperature measurement and display.

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

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Remarks

In HealthVault, temperature measurements have values and display values. All values are stored in a base unit of degrees Celsius (C). An application can take a pace value using any scale the application chooses and can store the user-entered value as the display value, but the temperature value must be converted to degrees Celsius to be stored in HealthVault.

Constructors

Temperature​Measurement()

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

Temperature​Measurement(​Double)

Creates a new instance of the TemperatureMeasurement class with the specified value in degrees Celsius.

Temperature​Measurement(​Double, ​Display​Value)

Creates a new instance of the TemperatureMeasurement class with the specified value in degrees Celsius and optional display value.

Methods

Assert​Measurement​Value(​Double)

Verifies that the value is a legal temperature value.

Get​Value​String(​Double)

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

Parse​Value​Xml(​XPath​Navigator)

Populates the data for the temperature from the XML.

Write​Value​Xml(​Xml​Writer)

Writes the temperature to the specified XML writer.