Compares two IDs. This method returns -1 if this is less than arg, 1 if this is greater than arg, and 0 if the IDs are equal.

This comparison is consistent with how IDs are compared in the DB2 and Oracle databases, but does not match how MSSQL Server compares IDs. For MSSQL Server databases, use CompareTo(arg, dbType).


Namespace: FileNet.Api.Util
Assembly: FileNet.Api (in filenet.api.dll)

Syntax

Visual Basic (Declaration)
Public Function CompareTo( _ 
   ByVal arg As Object _ 
) As Integer _
    Implements IComparable.CompareTo
C#
public int CompareTo(
   object arg
)
C++
public:
 int CompareTo(
   Object arg
) sealed 
J#
public int CompareTo(
   object arg
)
JScript
public  function CompareTo(
   arg : Object
) : int

Parameters

arg
An Object representing the ID against which to compare this ID.

Return Value

An Integer (-1, 1, or 0).

Implements

IComparable.CompareTo

See Also