FoodEnergyValue FoodEnergyValue FoodEnergyValue Class


Information related to the amount of nutrient consumed.

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


FoodEnergyValue() FoodEnergyValue() FoodEnergyValue()

Creates a new instance of the FoodEnergyValue class with default values.

FoodEnergyValue(Double) FoodEnergyValue(Double) FoodEnergyValue(Double)

Creates a new instance of the FoodEnergyValue class specifying mandatory values.

FoodEnergyValue(Double, DisplayValue) FoodEnergyValue(Double, DisplayValue) FoodEnergyValue(Double, DisplayValue)

Creates a new instance of the FoodEnergyValue class specifying mandatory values.


Calories Calories Calories

Gets or sets the amount of calories consumed.

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


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

Verifies the value is a legal calories 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)

Gets a string representation of the calories 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 energy value 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 energy value 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