MealDefinition Class

Definition

Information related to a meal.

public class MealDefinition : Microsoft.Health.HealthRecordItem
Inheritance
MealDefinition

Inherited Members

Microsoft.Health.HealthRecordItem

Constructors

MealDefinition()

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

MealDefinition(CodableValue)

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

Fields

TypeId

Retrieves the unique identifier for the item type.

Properties

Description

Textual description of the meal.

DietaryIntakeItems

Gets the collection of Dietary Intake items included in the meal definition.

MealType

Represents the type of meal, such as breakfast or lunch.

Name

Gets or sets the name of a meal definition.

Methods

ParseXml(IXPathNavigable)

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

ToString()

Gets a string representation of the Meal Definition.

WriteXml(XmlWriter)

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