Sample​Set Class

Definition

Represents a set of samples within a larger activity or reading.

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

Remarks

An example of a sample set is a set of heart rate readings during an aerobic activity.

Constructors

Sample​Set()

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

Sample​Set(​Health​Service​Date​Time)

Creates a new instance of the SampleSet class with the specified start time for the set.

Sample​Set(​Health​Service​Date​Time, ​String, ​Codable​Value)

Creates a new instance of the SampleSet class with the specified start time for the set.

Properties

Base​Time

Gets or sets the time when the sample set started recording samples.

Samples

Gets a collection containing the samples in the set.

Sample​Unit

Gets a text description of the unit of measure for the sample values in this set.

Sample​Unit​Code

Gets the vocabulary code for the unit of measure for the sample values in this set.

Methods

Parse​Xml(​XPath​Navigator)

Populates the data for the sample set from the XML.

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

Writes the sample set to the specified XML writer.