YearMonthDuration.CompareTo MethodYearMonthDuration.CompareTo MethodYearMonthDuration::CompareTo Method
Compares this instance to a specified YearMonthDurationYearMonthDurationYearMonthDuration and returns an integer that
indicates whether the value of this instance is less than, equal to, or greater than the value of the
specified YearMonthDurationYearMonthDurationYearMonthDuration.
Syntax
Public Function CompareTo( _ other As YearMonthDuration _ ) As Integer
public int CompareTo( YearMonthDuration other )
public: virtual int CompareTo( YearMonthDuration other ) sealed
Parameters
- other
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The YearMonthDurationYearMonthDurationYearMonthDuration to compare this instance with.
Return Value
Type: System.Int32System.Int32System::Int32
A signed number that indicates the relative order of this instance and other. The return value has the following meanings.
- Less than zero indicates that this instance is less than other.
- Zero indicates that this instance is equal to other.
- Greater than zero indicates that this instance is greater than other.