FlowMeasurement Class

Definition

Represents a flow of gas, liquid, etc. over time and a display value associated with the measurement.

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

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Remarks

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

Constructors

FlowMeasurement()

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

FlowMeasurement(Double)

Creates a new instance of the FlowMeasurement class with the specified value in liters per second.

FlowMeasurement(Double, DisplayValue)

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

Methods

AssertMeasurementValue(Double)

Verifies the value is a legal flow value in liters/sec.

GetValueString(Double)

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

ParseValueXml(XPathNavigator)

Populates the data for the flow from the XML.

WriteValueXml(XmlWriter)

Writes the flow to the specified XML writer.