ExerciseSamples Class

Definition

Stores a set of samples related to an exercise.

public class ExerciseSamples : Microsoft.Health.HealthRecordItem
Inheritance
ExerciseSamples

Inherited Members

Microsoft.Health.HealthRecordItem

Remarks

Examples: Heart rate samples, speed samples, position samples.

        Exercise samples are related to exercises through related items. 

        The samples are stored in the other-data section of the object, and must
        be fetched by specifying HealthItemRecordSections.BlobPayload.

        The format of the other-data section is the HealthVault comma-separated format. It should be accessed
        using the ExerciseSamplesData property.

Constructors

ExerciseSamples()

Creates an instance of ExerciseSamples with default values.

ExerciseSamples(ApproximateDateTime, CodableValue, CodableValue, Double)

Creates an instance of ExerciseSamples with specified parameters.

Fields

AerobicSteps_count

Sample name for AerobicSteps_count.

AirPressure_kPa

Sample name for AirPressure_kPa.

Altitude_meters

Sample name for Altitude_meters.

Cadence_RPM

Sample name for Cadence_RPM.

Distance_meters

Sample name for Distance_meters.

Heartrate_BPM

Sample name for Heartrate_BPM.

Pace_s_per_100m

Sample name for Pace_s-per-100m.

Position_LatLong

Sample name for Position_LatLong.

Power_watts

Sample name for Power_watts.

Speed_m_per_s

Sample name for Speed_m-per-s.

Steps_count

Sample name for Steps_count.

Temperature_celsius

Sample name for Temperature_celsius.

Torque_Nm

Sample name for Torque_Nm.

TypeId

Retrieves the unique identifier for the exercise samples item type.

Properties

ExerciseSamplesData

The sample data.

Name

Gets or sets the kind of information that is stored in this sample set.

SamplingInterval

Gets or sets the initial sampling interval between samples, in seconds.

Unit

Gets or sets the unit of measure for the samples.

When

Gets or sets the date and time when the samples were collected.

Methods

ParseXml(IXPathNavigable)

Populates this ExerciseSamples instance from the data in the XML.

ToString()

Gets the description of a exercise samples instance.

WriteXml(XmlWriter)

Writes the exercise samples data to the specified XmlWriter.