DateTimeOffset.IComparable.CompareTo(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares the value of the current DateTimeOffset object with another object of the same type.
virtual int System.IComparable.CompareTo(System::Object ^ obj) = IComparable::CompareTo;
int IComparable.CompareTo (object obj);
abstract member System.IComparable.CompareTo : obj -> int
override this.System.IComparable.CompareTo : obj -> int
Function CompareTo (obj As Object) As Integer Implements IComparable.CompareTo
Parameters
- obj
- Object
The object to compare with the current DateTimeOffset object.
Returns
A 32-bit signed integer that indicates whether the current DateTimeOffset object is less than, equal to, or greater than obj
. The return values of the method are interpreted as follows:
Return Value | Description |
---|---|
Less than zero | The current DateTimeOffset object is less than (earlier than) obj .
|
Zero | The current DateTimeOffset object is equal to (the same point in time as) obj .
|
Greater than zero | The current DateTimeOffset object is greater than (later than) obj .
|
Implements
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.