Determines the relative order of "this" and "other".
| C# | Visual Basic | Visual C++ |
public int CompareTo( ItemIdList other )
Public Function CompareTo ( _ other As ItemIdList _ ) As Integer
public: virtual int CompareTo( ItemIdList^ other ) sealed
- other (ItemIdList)
- The ItemIdList to compare with.
Negative return value if "other" should follow "this", zero if the two items are the same, a positive value otherwise.
| Exception | Condition |
|---|---|
| ArgumentNullException | If argument was null. |