Compare
This instance method compares data referenced by the current instance to that of the supplied object.
Declaration
// C# public int Compare(Int64 src_offset, OracleClob obj, Int64 dst_offset, Int64 amount);
Parameters
-
src_offset
The comparison starting point (in characters) for the current instance.
-
obj
The provided
OracleClob
object. -
dst_offset
The comparison starting point (in characters) for the provided
OracleClob
. -
amount
The number of characters to compare.
Return Value
The method returns a value that is:
-
Less than zero: if the data referenced by the current instance is less than that of the supplied instance.
-
Zero: if both objects reference the same data.
-
Greater than zero: if the data referenced by the current instance is greater than that of the supplied instance.
Exceptions
ObjectDisposedException
- The object is already disposed.
InvalidOperationException
- The parameter has a different connection than the object, OracleConnection
is not opened, or OracleConnection
has been reopened.
ArgumentOutOfRangeException
- Either the src_offset
, dst_offset
, or amount
parameter is less than 0
.
Remarks
The character set of the two OracleClob
objects being compared should be the same for a meaningful comparison.
The provided object and the current instance must be using the same connection, that is, the same OracleConnection
object.