Health​Service​Date Class

Definition

Represents a HealthVault date.

public class HealthServiceDate : Microsoft.Health.ItemTypes.HealthRecordItemData, IComparable, IComparable<DateTime>, IComparable<Microsoft.Health.ItemTypes.HealthServiceDate>
Inheritance
HealthServiceDate
Implements

Remarks

A HealthVault date differs from a DateTime in that it pertains to dates only, not times. The year, month, and day must be specified.

Constructors

Health​Service​Date()

Creates a new instance of the HealthServiceDate class with values defaulting to the current year, month, and day.

Health​Service​Date(​Int32, ​Int32, ​Int32)

Creates a new instance of the HealthServiceDate class with the specified year, month, and day.

Properties

Day

Gets or sets the day of the date.

Month

Gets or sets the month of the date.

Year

Gets or sets the year of the date.

Methods

Compare​To(​Health​Service​Date)

Compares the specified object to this HealthServiceDate object.

Compare​To(​Date​Time)

Compares the specified object to this HealthServiceDate object.

Compare​To(​Object)

Compares the specified object to this HealthServiceDate object.

Equals(​Object)

Retrieves a value indicating whether the specified object is equal to this object.

Get​Hash​Code()

See the base class documentation.

Parse​Xml(​XPath​Navigator)

Populates the data for the date from the XML.

To​String()

Gets a string representation of the date.

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

Writes the date to the specified XML writer.

Operators

Equality(​Health​Service​Date, ​Object)

Retrieves a value indicating whether the specified object is equal to the specified date.

Greater​Than(​Health​Service​Date, ​Object)

Retrieves a value indicating whether the specified date is greater than the specified object.

Inequality(​Health​Service​Date, ​Object)

Retrieves a value indicating whether the specified object is not equal to the specified date.

Less​Than(​Health​Service​Date, ​Object)

Retrieves a value indicating whether the specified date is less than the specified object.