VolumeMeasurement Class

Definition

Represents the volume of a gas, liquid, etc. and a display value associated with the measurement.

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

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Remarks

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

Constructors

VolumeMeasurement()

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

VolumeMeasurement(Double)

Creates a new instance of the VolumeMeasurement class with the specified value in liters.

VolumeMeasurement(Double, DisplayValue)

Creates a new instance of the VolumeMeasurement class with the specified value in liters and optional display value.

Methods

AssertMeasurementValue(Double)

Verifies the value is a legal volume value in liters.

GetValueString(Double)

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

ParseValueXml(XPathNavigator)

Populates the data for the volume from the XML.

WriteValueXml(XmlWriter)

Writes the volume to the specified XML writer.