ActorId.CompareTo(ActorId) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET