Approximate​Date Class

Definition

Represents an approximation of a date.

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

Remarks

An approximation of a date must have a year. The month, day, or both are optional.

Constructors

Approximate​Date()

Creates a new instance of the ApproximateDate class using default values.

Approximate​Date(​Int32)

Creates a new instance of the ApproximateDate class with the specified year.

Approximate​Date(​Int32, ​Int32)

Creates a new instance of the ApproximateDate class with the specified year and month.

Approximate​Date(​Int32, ​Int32, ​Int32)

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

Properties

Day

Gets or sets the day of the date approximation.

Month

Gets or sets the month of the date approximation.

Year

Gets or sets the year of the date approximation.

Methods

Compare​To(​Approximate​Date)

Compares the specified object to this ApproximateDate object.

Compare​To(​Date​Time)

Compares the specified object to this DateTime object.

Compare​To(​Object)

Compares the specified object to this ApproximateDate object.

Equals(​Object)

Gets 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 approximate date from the XML.

To​String()

Gets a string representation of the approximate date.

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

Writes the approximate date to the specified XML writer.

Operators

op_​Equality(​Approximate​Date, ​Object)

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

op_​Greater​Than(​Approximate​Date, ​Object)

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

op_​Inequality(​Approximate​Date, ​Object)

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

op_​Less​Than(​Approximate​Date, ​Object)

Gets a value indicating whether the specified date is less than the s pecified object.