Condividi tramite


ActorId.CompareTo(ActorId) Method

Definition

Compares this instance with a specified ActorId object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified actorId.

public int CompareTo (Microsoft.ServiceFabric.Actors.ActorId other);
abstract member CompareTo : Microsoft.ServiceFabric.Actors.ActorId -> int
override this.CompareTo : Microsoft.ServiceFabric.Actors.ActorId -> int
Public Function CompareTo (other As ActorId) As Integer

Parameters

other
ActorId

The actorId to compare with this instance.

Returns

A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the other parameter.

Implements

Remarks

The comparison is done based on the id if both the instances have same ActorIdKind. If ActorIdKind is different, then comparison is done based on string representation of the actor id.

Applies to