Units Property

HealthVault
Gets or sets the units of measure as defined by the user.

Namespace: Microsoft.Health.ItemTypes
Assembly: Microsoft.Health.ItemTypes (in Microsoft.Health.ItemTypes.dll) Version: 2.1.0.0 (1.15.1003.9505)

public string Units { get; set; }

Field Value

A string representing the units.

When the units are different from the base units for the particular type of measurement, the units should be set and if possible the UnitsCode should also be set.

ExceptionCondition
System..::..ArgumentException The value set is null, empty.
Show: