PressureMeasurement Class

Definition

Represents a pressure measurement and a display value associated with the measurement.

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

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Remarks

In HealthVault, pressure measurements have values and display values. All values are stored in a standard SI unit of pascal (Pa). An application can take a pressure value using any scale the application chooses and can store the user-entered value as the display value, but the pressure value must be converted to pascals to be stored in HealthVault.

Constructors

PressureMeasurement()

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

PressureMeasurement(Double)

Creates a new instance of the PressureMeasurement class with the specified value in pascal.

PressureMeasurement(Double, DisplayValue)

Creates a new instance of the PressureMeasurement class with the specified value in pascals and an optional display value.

Methods

AssertMeasurementValue(Double)

Verifies the value is a legal pressure value in Pa.

GetValueString(Double)

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

ParseValueXml(XPathNavigator)

Populates the data for the pressure from the XML.

WriteValueXml(XmlWriter)

Writes the pressure to the specified XML writer.