Length Class

Definition

Represents a length value and display.

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

Inherited Members

Remarks

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

Constructors

Length()

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

Length(​Double)

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

Length(​Double, ​Display​Value)

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

Properties

Meters

Gets or sets the value of the length in meters.

Methods

Assert​Measurement​Value(​Double)

Verifies that the value is a legal length value in meters.

Get​Value​String(​Double)

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

Parse​Value​Xml(​XPath​Navigator)

Populates the data for the length from the XML.

Write​Value​Xml(​Xml​Writer)

Writes the length to the specified XML writer.