ElectionIdCompareTo Method |
Compares the current object with another object of the same type.
Namespace:
MongoDB.Driver.Core.Clusters
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax public int CompareTo(
ElectionId other
)
Public Function CompareTo (
other As ElectionId
) As Integer
abstract CompareTo :
other : ElectionId -> int
override CompareTo :
other : ElectionId -> int
Parameters
- other
- Type: MongoDB.Driver.Core.ClustersElectionId
An object to compare with this object.
Return Value
Type:
Int32
A value that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the
other parameter.Zero This object is equal to
other. Greater than zero This object is greater than
other.
Implements
IComparableTCompareTo(T)See Also