InsulinInjectionMeasurement InsulinInjectionMeasurement InsulinInjectionMeasurement Class

Definition

Represents an insulin injection measurement.

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

Remarks

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

Constructors

InsulinInjectionMeasurement() InsulinInjectionMeasurement() InsulinInjectionMeasurement()

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

InsulinInjectionMeasurement(Double) InsulinInjectionMeasurement(Double) InsulinInjectionMeasurement(Double)

Creates a new instance of the InsulinInjectionMeasurement class with the specified value in IE (1/100mL).

InsulinInjectionMeasurement(Double, DisplayValue) InsulinInjectionMeasurement(Double, DisplayValue) InsulinInjectionMeasurement(Double, DisplayValue)

Creates a new instance of the InsulinInjectionMeasurement class with the specified value in IE (1/100mL) and display value.

Methods

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

Verifies that the value is a legal insulin injection measurement in IE (1/100mL).

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)

Gets a string representation of the insulin injection 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 insulin injection 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 insulin injection 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>)

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>)

Applies to