10.24.0

IReplicationGroupMessageIdCompare Method

Compares one id instance to another.

Definition

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

Parameters

otherId  IReplicationGroupMessageId
The other id instance to compare to.

Return Value

Int32
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.

Exceptions

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