Exercise Class

Definition

Represents a health record item type that encapsulates an aerobic session.

public class Exercise : Microsoft.Health.HealthRecordItem
Inheritance

Inherited Members

Microsoft.Health.HealthRecordItem

Constructors

Exercise()

Constructs a new instance of the Exercise class with default values.

Exercise(​Approximate​Date​Time, ​Codable​Value)

Creates a new instance of the Exercise class with the specified date/time and activity.

Fields

Type​Id

The unique identifier for the Exercise item type.

Properties

Activity

Gets or sets the type of activity.

Details

Gets additional information about the exercise.

Distance

Gets or sets the distance covered in the exercise.

Duration

Gets or sets the duration of the exercise in minutes.

Segments

Gets information pertaining to a portion of the overall exercise.

Title

Gets or sets a descriptive title for this activity.

When

Gets or sets the date/time when the exercise occurred.

Methods

Parse​Xml(​IX​Path​Navigable)

Populates this Exercise instance from the data in the XML.

To​String()

Gets a string representation of the Exercise item.

Write​Xml(​Xml​Writer)

Writes the exercise data to the specified XmlWriter.