Unit​Conversion Class

Definition

Unit conversion representation.

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

Constructors

Unit​Conversion()

Creates a new instance of the UnitConversion class with default values.

Properties

Multiplier

Gets or sets the multiplier.

Offset

Gets or sets the offset.

Methods

Convert(​Double)

Convert a value using this conversion.

Parse​Xml(​XPath​Navigator)

Populates this UnitConversion instance from the data in the specified XML.

Reverse​Convert(​Double)

Reverse convert a value using this conversion.

To​String()

Gets a string representation of the UnitConversion.

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

Writes the XML representation of the UnitConversion into the specified XML writer.