DurationValue DurationValue DurationValue Class

Definition

Represents a health record item type that encapsulates a duration of time with a starting and optional ending date.

public class DurationValue : Microsoft.Health.ItemTypes.HealthRecordItemData
type DurationValue = class
    inherit HealthRecordItemData
Public Class DurationValue
Inherits HealthRecordItemData
Inheritance

Constructors

DurationValue() DurationValue() DurationValue()

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

DurationValue(ApproximateDateTime) DurationValue(ApproximateDateTime) DurationValue(ApproximateDateTime)

Creates a new instance of the DurationValue class with the specified starting date.

DurationValue(ApproximateDateTime, ApproximateDateTime) DurationValue(ApproximateDateTime, ApproximateDateTime) DurationValue(ApproximateDateTime, ApproximateDateTime)

Creates a new instance of the DurationValue class with the specified starting and ending date.

Properties

EndDate EndDate EndDate

Gets or sets the approximate date of the end of the duration.

StartDate StartDate StartDate

Gets or sets the approximate date of the start of the duration.

Methods

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

Populates this Person instance from the data in the XML.

ToString() ToString() ToString()

Gets a string representation of the duration value.

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

Writes the duration value to the specified XmlWriter.

Applies to