StringMeasurement StringMeasurement StringMeasurement Class

Definition

Represents a measurement of type string and display.

public class StringMeasurement : Microsoft.Health.ItemTypes.Measurement<string>
type StringMeasurement = class
    inherit Measurement<string>
Public Class StringMeasurement
Inherits Measurement(Of String)
Inheritance

Constructors

StringMeasurement() StringMeasurement() StringMeasurement()

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

StringMeasurement(String) StringMeasurement(String) StringMeasurement(String)

Creates a new instance of the StringMeasurement class with the specified value.

StringMeasurement(String, DisplayValue) StringMeasurement(String, DisplayValue) StringMeasurement(String, DisplayValue)

Creates a new instance of the StringMeasurement class with the specified value and optional display value.

Properties

DisplayValue DisplayValue DisplayValue

Gets or sets the display value of the HealthVault dictionary item.

(Inherited from Measurement<MeasurementType>)
Value Value Value

Gets or sets the value of the measurement.

(Inherited from Measurement<MeasurementType>)
ValueElementName ValueElementName ValueElementName

Gets or sets the name of the element that defines the value for the measurement.

Methods

AssertMeasurementValue(MeasurementType) AssertMeasurementValue(MeasurementType) AssertMeasurementValue(MeasurementType)

Verifies the value is in the appropriate base unit of measure and is a legal value for the type.

(Inherited from Measurement<MeasurementType>)
AssertMeasurementValue(String) AssertMeasurementValue(String) AssertMeasurementValue(String)

Verifies that the value is a legal value.

GetValueString(MeasurementType) GetValueString(MeasurementType) GetValueString(MeasurementType)

Retrieves the string representation of the value.

(Inherited from Measurement<MeasurementType>)
GetValueString(String) GetValueString(String) GetValueString(String)

Retrieves a string representation of the measurement in the base units.

ParseValueXml(XPathNavigator) ParseValueXml(XPathNavigator) ParseValueXml(XPathNavigator)

Populates the data for the measurement from the XML.

ParseXml(XPathNavigator) ParseXml(XPathNavigator) ParseXml(XPathNavigator)

Populates the data for the measurement from the XML.

(Inherited from Measurement<MeasurementType>)
ToString() ToString() ToString()

Retrieves a string representation of the measurement using the DisplayValue property.

(Inherited from Measurement<MeasurementType>)
WriteValueXml(XmlWriter) WriteValueXml(XmlWriter) WriteValueXml(XmlWriter)

Writes the measurement to the specified XML writer.

WriteXml(String, XmlWriter) WriteXml(String, XmlWriter) WriteXml(String, XmlWriter)

Writes the measurement to the specified XML writer.

(Inherited from Measurement<MeasurementType>)

Applies to