IReplicationGroupMessageIdCompare Method

Compares one id instance to another.


Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 10.24.0
int Compare(
	IReplicationGroupMessageId otherId


otherId  IReplicationGroupMessageId
The other id instance to compare to.

Return Value

Returns Int32 A value that indicates the relative order of the objects being compared. The return value has these meanings:
  • less then 0, This instance precedes otherId in the sort order.
  • 0, This instance occurs in the same position in the sort order as otherId.
  • greater then 0, This instance follows otherId in the sort order.


ArgumentNullExceptionWhen otherId paraemter is null.
ArgumentException When otherId object parameter is not created from the api.
OperationErrorException When otherId comparison operation fails. Possible sub-codes:
FatalErrorException Thrown when an unrecoverable error occurs.

See Also