NutritionFact Class

Definition

Information related to a nutrient consumed.

public class NutritionFact : Microsoft.Health.ItemTypes.HealthRecordItemData
Inheritance

Constructors

NutritionFact()

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

NutritionFact(CodableValue)

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

Properties

Fact

Gets or sets the amount of nutrient consumed.

Name

Gets or sets the name of the nutrient consumed.

Methods

ParseXml(XPathNavigator)

Populates this NutritionFact instance from the data in the specified XML.

ToString()

Gets a string representation of the NutritionFact.

WriteXml(String, XmlWriter)

Writes the XML representation of the NutritionFact into the specified XML writer.