Power​Measurement Class

Definition

Represents a power measurement and display.

public class PowerMeasurement : Microsoft.Health.ItemTypes.Measurement<double>
Inheritance

Inherited Members

Microsoft.Health.ItemTypes.Measurement`1

Remarks

In HealthVault, power measurements have values and display values. All values are stored in a base unit of watts. An application can take a pace value using any scale the application chooses and can store the user-entered value as the display value, but the power value must be converted to watts to be stored in HealthVault.

Constructors

Power​Measurement()

Creates a new instance of the PowerMeasurement class with empty values.

Power​Measurement(​Double)

Creates a new instance of the PowerMeasurement class with the specified value in watts.

Power​Measurement(​Double, ​Display​Value)

Creates a new instance of the PowerMeasurement class with the specified value in watts and optional display value.

Methods

Assert​Measurement​Value(​Double)

Verifies that the value is a legal power value.

Get​Value​String(​Double)

Gets a string representation of the power in the base units.

Parse​Value​Xml(​XPath​Navigator)

Populates the data for the power from the XML.

Write​Value​Xml(​Xml​Writer)

Writes the power to the specified XML writer.