Compares two IDs as is done in a database search.
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 matches the way that the databases compare IDs
if done in a database search. dbType may be null if the comparison
algorithm does not need to match that of any particular database. Specifying null
for dbType is the same as calling the single-parameter form of this method,
CompareTo(arg).
Namespace:
FileNet.Api.Util
Assembly:
FileNet.Api (in FileNet.Api.dll)
Visual Basic (Declaration) |
---|
Public Function CompareTo ( _
arg As Object, _
dbType As DatabaseType _
) As Integer |
Visual C++ |
---|
public:
int CompareTo(
Object^ arg,
DatabaseType dbType
) |
JavaScript |
---|
function compareTo(arg, dbType); |
Parameters
- arg
- Type: System..::.Object
An Object representing the ID against which to compare this ID.
- dbType
- Type: FileNet.Api.Constants..::.DatabaseType
An instance of DatabaseType; can be null.
Return Value
An
Integer (-1, 1, or 0).