Sample Class

Definition

Represents a single sample of a measurement or data point.

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

Remarks

A sample is a single measurement within a larger activity. For instance, the a single heart rate reading during an aerobic activity.

Constructors

Sample()

Creates a new instance of the Sample class with no value.

Sample(​Double)

Creates a new instance of the Sample class with the specified time offset.

Sample(​Double, ​String)

Creates a new instance of the Sample class with the specified time offset and value.

Properties

Note

Gets or sets a description of the sample.

Time​Offset

Gets or sets the time offset in seconds from the start of the sample set.

Value

Gets or sets the value of the sample.

Methods

Parse​Xml(​XPath​Navigator)

Populates the data for the measurement from the XML.

Write​Xml(​String, ​Xml​Writer)

Writes the sample to the specified XML writer.