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)

ToggleSyntax

Visual Basic (Declaration)
Public Function CompareTo ( _
	arg As Object _
) As Integer
C#
public int CompareTo(
	Object arg
)
Visual C++
public:
virtual int CompareTo(
	Object^ arg
) sealed
JavaScript
function compareTo(arg);

Parameters

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

Return Value

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

Implements

IComparable..::.CompareTo(Object)

ToggleSee Also