Range<RangeType> Range<RangeType> Range<RangeType> Class


Represents a data range based on a generic type.

public abstract class Range<RangeType> : Microsoft.Health.ItemTypes.HealthRecordItemData
type Range<'RangeType> = class
    inherit HealthRecordItemData
Public MustInherit Class Range(Of RangeType)
Inherits HealthRecordItemData

Type Parameters


The type of the minimum and maximum values for the range.



A range consists of a minimum range value and a maximum range value of the specific

generic type.


Range<RangeType>() Range<RangeType>() Range<RangeType>()

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

Range<RangeType>(RangeType, RangeType) Range<RangeType>(RangeType, RangeType) Range<RangeType>(RangeType, RangeType)

Constructs a new instance of the Range class with the specified min and max range values.


DefaultMaxValue DefaultMaxValue DefaultMaxValue

Gets the maximum range value to its default value.

DefaultMinValue DefaultMinValue DefaultMinValue

Initializes the minimum range value to its default value.

MaxRange MaxRange MaxRange

Gets or sets the maximum value of the range.

MinRange MinRange MinRange

Gets or sets the minimum value of the range.


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

Populates the data for the range from the XML.

ReadRangeValue(XPathNavigator) ReadRangeValue(XPathNavigator) ReadRangeValue(XPathNavigator)

Reads the value from the specified XPathNavigator as a RangeType.

VerifyRangeValue(RangeType) VerifyRangeValue(RangeType) VerifyRangeValue(RangeType)

Verifies that the specified range value is an appropriate value for the range.

WriteRangeValue(String, RangeType, XmlWriter) WriteRangeValue(String, RangeType, XmlWriter) WriteRangeValue(String, RangeType, XmlWriter)

Writes the specified range value to the specified writer with the specified node name.

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

Writes the range data to the specified XML writer.

Applies to