Table of Contents

Method CompareTo

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

CompareTo(ObjectId)

Compares this ObjectId to another ObjectId.

public int CompareTo(ObjectId other)

Parameters

other ObjectId

The other ObjectId.

Returns

int

A 32-bit signed integer that indicates whether this ObjectId is less than, equal to, or greather than the other.