DoubleMeasurement DoubleMeasurement DoubleMeasurement Class

Definition

Represents a measurement of type double and display.

public class DoubleMeasurement : Microsoft.Health.ItemTypes.Measurement<double>
type DoubleMeasurement = class
    inherit Measurement<double>
Public Class DoubleMeasurement
Inherits Measurement(Of Double)
Inheritance

Constructors

DoubleMeasurement() DoubleMeasurement() DoubleMeasurement()

Creates a new instance of the DoubleMeasurement class using default values.

DoubleMeasurement(Double) DoubleMeasurement(Double) DoubleMeasurement(Double)

Creates a new instance of the DoubleMeasurement class with the specified value.

DoubleMeasurement(Double, DisplayValue) DoubleMeasurement(Double, DisplayValue) DoubleMeasurement(Double, DisplayValue)

Creates a new instance of the DoubleMeasurement class with the specified value and optional display value.

Properties

DisplayValue DisplayValue DisplayValue

Gets or sets the display value of the HealthVault dictionary item.

(Inherited from Measurement<MeasurementType>)
Value Value Value

Gets or sets the value of the measurement.

(Inherited from Measurement<MeasurementType>)
ValueElementName ValueElementName ValueElementName

Gets or sets the name of the element that defines the value for the measurement.

Methods

AssertMeasurementValue(Double) AssertMeasurementValue(Double) AssertMeasurementValue(Double)

Verifies that the value is a legal value.

AssertMeasurementValue(MeasurementType) AssertMeasurementValue(MeasurementType) AssertMeasurementValue(MeasurementType)

Verifies the value is in the appropriate base unit of measure and is a legal value for the type.

(Inherited from Measurement<MeasurementType>)
GetValueString(Double) GetValueString(Double) GetValueString(Double)

Retrieves a string representation of the measurement in the base units.

GetValueString(MeasurementType) GetValueString(MeasurementType) GetValueString(MeasurementType)

Retrieves the string representation of the value.

(Inherited from Measurement<MeasurementType>)
ParseValueXml(XPathNavigator) ParseValueXml(XPathNavigator) ParseValueXml(XPathNavigator)

Populates the data for the measurement from the XML.

ParseXml(XPathNavigator) ParseXml(XPathNavigator) ParseXml(XPathNavigator)

Populates the data for the measurement from the XML.

(Inherited from Measurement<MeasurementType>)
ToString() ToString() ToString()

Retrieves a string representation of the measurement using the DisplayValue property.

(Inherited from Measurement<MeasurementType>)
WriteValueXml(XmlWriter) WriteValueXml(XmlWriter) WriteValueXml(XmlWriter)

Writes the measurement to the specified XML writer.

WriteXml(String, XmlWriter) WriteXml(String, XmlWriter) WriteXml(String, XmlWriter)

Writes the measurement to the specified XML writer.

(Inherited from Measurement<MeasurementType>)

Applies to