Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compares the position of this record with the position of the specified record enumeration domain value.
Syntax
public int compareTo(EcoResEnumerationAttributeTypeValue _enumAttributeTypeValue)
Run On
Called
Parameters
- _enumAttributeTypeValue
Type: EcoResEnumerationAttributeTypeValue Table
The enumeration domain value to which to compare the current position.
Return Value
Type: int
-1 if the position of this record is less than the position of the given record enumeration domain value; 0 if the positions are the same; 1 if the position of this record is larger than the position of the given record enumeration domain value.
Exceptions
Exception | Condition |
---|---|
Error | This record and the given record are not comparable as they do not belong in the same domain. |
Remarks
To compare the actual values and not the positions, use the compareTo method on the values that are stored in the Value fields.