Speed​Measurement Class

Definition

Represents a speed measurement and display.

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

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Remarks

In HealthVault, speed measurements have values and display values. All values are stored in a base unit of meters per second (m/s). An application can take a speed value using any scale the application chooses and can store the user-entered value as the display value, but the speed value must be converted to m/s to be stored in HealthVault.

Constructors

Speed​Measurement()

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

Speed​Measurement(​Double)

Creates a new instance of the SpeedMeasurement class with the specified value in meters per second.

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

Creates a new instance of the SpeedMeasurement class with the specified value in meters per second and optional display value.

Methods

Assert​Measurement​Value(​Double)

Verifies the value is a legal speed value in meters.

Get​Value​String(​Double)

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

Parse​Value​Xml(​XPath​Navigator)

Populates the data for the speed from the XML.

Write​Value​Xml(​Xml​Writer)

Writes the speed to the specified XML writer.